Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 483239087ce13b24a3a6e175c4a94be378ea0fb6 1 parent 735de1c
@jsnfwlr jsnfwlr authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/form/form.js
View
1  lib/form/form.js
@@ -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');
}
},
/**
Please sign in to comment.
Something went wrong with that request. Please try again.