MDL24200 - Admin Users - Changing the submit button to just a button to prevent it from taking focus when entering text. (Patch provided by Hubert Chathi)

This commit is contained in:
Jason Fowler 2011-10-07 16:20:26 +08:00
parent 735de1c276
commit 483239087c

View File

@ -30,6 +30,7 @@ M.form.initShowAdvanced = function(Y, config) {
if (this._advButtons.size() > 0) {
this._stateInput = new Y.NodeList(document.getElementsByName('mform_showadvanced_last'));
this._advButtons.on('click', this.switchState, this);
this._advButtons.set('type', 'button');
}
},
/**