From c862bff208c985604c6082193b9243f85754060a Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 3 Mar 2014 17:16:49 +0800 Subject: [PATCH] Pman.Dialog.CoreEnum.bjs Pman.Dialog.CoreEnum.js --- Pman.Dialog.CoreEnum.bjs | 2 +- Pman.Dialog.CoreEnum.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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'); -- 2.39.2