Merge branch 'MDL-33729-master-1' of git://git.luns.net.uk/moodle

This commit is contained in:
Aparup Banerjee 2012-06-20 14:28:05 +08:00
commit eca0371465

View file

@ -95,10 +95,14 @@ YUI.add('moodle-core-chooserdialogue', function(Y) {
}, this); }, this);
// Hook onto the cancel button to hide the form // 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 // 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 // Add references to various elements we adjust
this.jumplink = this.container.one('#jump'); this.jumplink = this.container.one('#jump');