Merge branch 'wip-MDL-68808-MOODLE_39_STABLE' of https://github.com/jason-platts/moodle into MOODLE_39_STABLE
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -148,9 +148,16 @@ function($, log, str, templates, notification, LoadingIcon) {
|
||||
M.core_formchangechecker.set_form_changed();
|
||||
}
|
||||
|
||||
// Note, jQuery .change() was not working here. Better to
|
||||
// use plain JavaScript anyway.
|
||||
originalSelect[0].dispatchEvent(new Event('change'));
|
||||
// Note, jQuery .change() was not working here.
|
||||
var event;
|
||||
if (typeof Event === 'function') {
|
||||
event = new Event('change');
|
||||
} else {
|
||||
// Support IE.
|
||||
event = document.createEvent('Event');
|
||||
event.initEvent('change', true, true);
|
||||
}
|
||||
originalSelect[0].dispatchEvent(event);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user