{
calendarSelect: function(e)
{
- var prefix;
+ var prefix, radio;
switch (e.element().identify()) {
case 'dueimg':
prefix = 'due';
+ radio = 'due_type_specified';
break;
case 'startimg':
prefix = 'start';
+ radio = 'start_date_specified';
break;
default:
$(prefix + '_month').setValue(e.memo.getMonth() + 1);
$(prefix + '_day').setValue(e.memo.getDate());
+ $(radio).setValue(1);
+
this.updateWday(prefix);
},
case 'start_month':
case 'start_year':
this.updateWday('start');
+ // Fall-through
+
+ case 'start_hour':
+ case 'start_minute':
+ $('start_date_specified').setValue(1);
break;
}
},
$('nag_taskform_active').observe('click', this.clickHandler.bindAsEventListener(this));
$('nag_taskform_active').observe('change', this.changeHandler.bindAsEventListener(this));
}
-
};
document.observe('dom:loaded', NagCalendar.onDomLoad.bind(NagCalendar));