mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Merge branch 'MDL-77420-master' of https://github.com/ferranrecio/moodle
This commit is contained in:
commit
edc4d51e6e
2
lib/amd/build/modal.min.js
vendored
2
lib/amd/build/modal.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -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));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user