MDL24200 - Admin Users - Changing the submit button to just a button to prevent it...
authorJason Fowler <phalacee@gmail.com>
Fri, 7 Oct 2011 08:20:26 +0000 (16:20 +0800)
committerJason Fowler <phalacee@gmail.com>
Mon, 7 Nov 2011 07:29:11 +0000 (15:29 +0800)
lib/form/form.js

index 0b69586..ee473eb 100644 (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');
             }
         },
         /**