mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-77420-master' of https://github.com/ferranrecio/moodle
This commit is contained in:
commit
edc4d51e6e
3 changed files with 7 additions and 3 deletions
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) {
|
||||
if (this.removeOnClose) {
|
||||
this.destroy();
|
||||
} else {
|
||||
this.hide();
|
||||
}
|
||||
data.originalEvent.preventDefault();
|
||||
}.bind(this));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue