mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDl-34606 Administration: id for clear button is set properly, and disabled on page load
This commit is contained in:
parent
bac15e5782
commit
acff486664
1 changed files with 2 additions and 1 deletions
|
@ -77,8 +77,9 @@ M.core_user.init_user_selector = function (Y, name, hash, extrafields, lastsearc
|
|||
var clearbtn = Y.one('#'+this.name + '_clearbutton');
|
||||
this.clearbutton = Y.Node.create('<input type="button" value="'+clearbtn.get('value')+'" />');
|
||||
clearbtn.replace(Y.Node.getDOMNode(this.clearbutton));
|
||||
this.clearbutton.set('id',+this.name+"_clearbutton");
|
||||
this.clearbutton.set('id', this.name+"_clearbutton");
|
||||
this.clearbutton.on('click', this.handle_clear, this);
|
||||
this.clearbutton.set('disabled', (this.get_search_text() == ''));
|
||||
|
||||
this.send_query(false);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue