mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-60207 javascript: remove click handler in YUI modal initialiser
This commit is contained in:
parent
30e1f5a023
commit
7e0305be70
4 changed files with 2 additions and 14 deletions
|
@ -132,10 +132,6 @@ Y.extend(DIALOGUE, Y.Panel, {
|
||||||
// hidden by default. ARIA visibility is managed for modal dialogues.
|
// hidden by default. ARIA visibility is managed for modal dialogues.
|
||||||
this.get(BASE).set('aria-hidden', 'true');
|
this.get(BASE).set('aria-hidden', 'true');
|
||||||
this.plug(Y.M.core.LockScroll);
|
this.plug(Y.M.core.LockScroll);
|
||||||
|
|
||||||
var maskNode = this.get('maskNode');
|
|
||||||
maskNode.on('click', this.hide, this);
|
|
||||||
this._currentMaskNodeId = maskNode.get('_yuid');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Workaround upstream YUI bug http://yuilibrary.com/projects/yui3/ticket/2532507
|
// Workaround upstream YUI bug http://yuilibrary.com/projects/yui3/ticket/2532507
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -132,10 +132,6 @@ Y.extend(DIALOGUE, Y.Panel, {
|
||||||
// hidden by default. ARIA visibility is managed for modal dialogues.
|
// hidden by default. ARIA visibility is managed for modal dialogues.
|
||||||
this.get(BASE).set('aria-hidden', 'true');
|
this.get(BASE).set('aria-hidden', 'true');
|
||||||
this.plug(Y.M.core.LockScroll);
|
this.plug(Y.M.core.LockScroll);
|
||||||
|
|
||||||
var maskNode = this.get('maskNode');
|
|
||||||
maskNode.on('click', this.hide, this);
|
|
||||||
this._currentMaskNodeId = maskNode.get('_yuid');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Workaround upstream YUI bug http://yuilibrary.com/projects/yui3/ticket/2532507
|
// Workaround upstream YUI bug http://yuilibrary.com/projects/yui3/ticket/2532507
|
||||||
|
|
4
lib/yui/src/notification/js/dialogue.js
vendored
4
lib/yui/src/notification/js/dialogue.js
vendored
|
@ -102,10 +102,6 @@ Y.extend(DIALOGUE, Y.Panel, {
|
||||||
// hidden by default. ARIA visibility is managed for modal dialogues.
|
// hidden by default. ARIA visibility is managed for modal dialogues.
|
||||||
this.get(BASE).set('aria-hidden', 'true');
|
this.get(BASE).set('aria-hidden', 'true');
|
||||||
this.plug(Y.M.core.LockScroll);
|
this.plug(Y.M.core.LockScroll);
|
||||||
|
|
||||||
var maskNode = this.get('maskNode');
|
|
||||||
maskNode.on('click', this.hide, this);
|
|
||||||
this._currentMaskNodeId = maskNode.get('_yuid');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Workaround upstream YUI bug http://yuilibrary.com/projects/yui3/ticket/2532507
|
// Workaround upstream YUI bug http://yuilibrary.com/projects/yui3/ticket/2532507
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue