From 35271f566f98fbe09f1a1c4bb1e8962032abe578 Mon Sep 17 00:00:00 2001 From: Jason Fowler Date: Fri, 7 Oct 2011 16:20:26 +0800 Subject: [PATCH] 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) --- lib/form/form.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/form/form.js b/lib/form/form.js index 140a47502e3..a10f21a7115 100644 --- a/lib/form/form.js +++ b/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'); } }, /**