mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Merge branch 'MDL-33729-master-1' of git://git.luns.net.uk/moodle
This commit is contained in:
commit
eca0371465
1 changed files with 6 additions and 2 deletions
8
lib/yui/chooserdialogue/chooserdialogue.js
vendored
8
lib/yui/chooserdialogue/chooserdialogue.js
vendored
|
@ -95,10 +95,14 @@ YUI.add('moodle-core-chooserdialogue', function(Y) {
|
|||
}, this);
|
||||
|
||||
// Hook onto the cancel button to hide the form
|
||||
this.container.one('#addcancel').on('click', this.cancel_popup, this);
|
||||
thisevent = this.container.one('#addcancel').on('click', this.cancel_popup, this);
|
||||
this.listenevents.push(thisevent);
|
||||
thisevent = bb.one('div.closebutton').on('click', this.cancel_popup, this);
|
||||
this.listenevents.push(thisevent);
|
||||
|
||||
// Grab global keyup events and handle them
|
||||
Y.one('document').on('keyup', this.handle_key_press, this);
|
||||
thisevent = Y.one('document').on('keyup', this.handle_key_press, this);
|
||||
this.listenevents.push(thisevent);
|
||||
|
||||
// Add references to various elements we adjust
|
||||
this.jumplink = this.container.one('#jump');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue