mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-34352 Convert chooserdialogue IDs to classes
This commit is contained in:
parent
3294034b80
commit
0a2fb91003
3 changed files with 6 additions and 8 deletions
6
lib/yui/chooserdialogue/chooserdialogue.js
vendored
6
lib/yui/chooserdialogue/chooserdialogue.js
vendored
|
@ -118,7 +118,7 @@ YUI.add('moodle-core-chooserdialogue', function(Y) {
|
|||
}, this);
|
||||
|
||||
// Hook onto the cancel button to hide the form
|
||||
thisevent = 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);
|
||||
|
@ -128,8 +128,8 @@ YUI.add('moodle-core-chooserdialogue', function(Y) {
|
|||
this.listenevents.push(thisevent);
|
||||
|
||||
// Add references to various elements we adjust
|
||||
this.jumplink = this.container.one('#jump');
|
||||
this.submitbutton = this.container.one('#submitbutton');
|
||||
this.jumplink = this.container.one('.jump');
|
||||
this.submitbutton = this.container.one('.submitbutton');
|
||||
|
||||
// Disable the submit element until the user makes a selection
|
||||
this.submitbutton.set('disabled', 'true');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue