MDL-30305 Automatically hide the dateselector after choosing a date
This commit is contained in:
+1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user