Permalink
Browse files

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)
  • Loading branch information...
1 parent 919e659 commit 35271f566f98fbe09f1a1c4bb1e8962032abe578 @jsnfwlr jsnfwlr committed Oct 7, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/form/form.js
View
@@ -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');
}
},
/**

0 comments on commit 35271f5

Please sign in to comment.