Skip to content

Commit

Permalink
Merge branch 'MDL-33729-master-1' of git://git.luns.net.uk/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Aparup Banerjee committed Jun 20, 2012
2 parents b1c43c3 + 605f92c commit eca0371
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/yui/chooserdialogue/chooserdialogue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit eca0371

Please sign in to comment.