From: Edward Date: Mon, 3 Mar 2014 09:16:49 +0000 (+0800) Subject: Pman.Dialog.CoreEnum.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=c862bff208c985604c6082193b9243f85754060a Pman.Dialog.CoreEnum.bjs Pman.Dialog.CoreEnum.js --- diff --git a/Pman.Dialog.CoreEnum.bjs b/Pman.Dialog.CoreEnum.bjs index 337d9854..338d2e20 100644 --- a/Pman.Dialog.CoreEnum.bjs +++ b/Pman.Dialog.CoreEnum.bjs @@ -98,7 +98,7 @@ }, { "listeners": { - "|click": "function() {\n\n var name = _this.form.findField('name').getValue();\n name = name.toUpperCase().replace(/[^A-Z]+/g, '');\n if (!name.length) {\n Roo.MessageBox.alert(\"Error\",\"Please fill in a valid name\");\n return;\n }\n _this.form.findField('name').setValue(name);\n\n \n _this.form.doAction('submit');\n \n}" + "|click": "function() {\n\n var name = _this.form.findField('name').getValue();\n name = name.toUpperCase().replace(/[^A-Z]+/g, '');\n if (!name.length) {\n Roo.MessageBox.alert(\"Error\",\"Please fill in a valid name\");\n return;\n }\n _this.form.findField('name').setValue(name);\n \n _this.form.doAction('submit');\n \n}" }, "*prop": "buttons[]", "text": "OK", diff --git a/Pman.Dialog.CoreEnum.js b/Pman.Dialog.CoreEnum.js index cf3b5ec1..910fb0b8 100644 --- a/Pman.Dialog.CoreEnum.js +++ b/Pman.Dialog.CoreEnum.js @@ -169,7 +169,6 @@ Pman.Dialog.CoreEnum = { return; } _this.form.findField('name').setValue(name); - _this.form.doAction('submit');