Merge branch 'MDL-77420-master' of https://github.com/ferranrecio/moodle

This commit is contained in:
Andrew Nicols 2023-03-09 11:52:59 +08:00
commit edc4d51e6e
3 changed files with 7 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -853,7 +853,11 @@ define([
CustomEvents.define(this.getModal(), [CustomEvents.events.activate]);
this.getModal().on(CustomEvents.events.activate, SELECTORS.HIDE, function(e, data) {
this.hide();
if (this.removeOnClose) {
this.destroy();
} else {
this.hide();
}
data.originalEvent.preventDefault();
}.bind(this));