MDL-30305 Automatically hide the dateselector after choosing a date

This commit is contained in:
Andrew Robert Nicols
2012-05-10 14:11:19 +01:00
parent 1c7eb3df38
commit b286fcdfdc
+1
View File
@@ -136,6 +136,7 @@ YUI.add('moodle-form-dateselector', function(Y) {
this.yearselect.set('selectedIndex', newindex);
this.monthselect.set('selectedIndex', date[1] - this.monthselect.firstOptionValue());
this.dayselect.set('selectedIndex', date[2] - this.dayselect.firstOptionValue());
M.form.dateselector.release_current();
},
connect_handlers : function() {
M.form.dateselector.calendar.selectEvent.subscribe(this.set_selects_from_date, this, true);