From 348ac8c49e9f5e41a3d9c897200afc9e297d977a Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 3 Mar 2014 17:16:42 +0800 Subject: [PATCH] Pman.Dialog.CoreEnum.bjs Pman.Dialog.CoreEnum.js --- Pman.Dialog.CoreEnum.bjs | 2 +- Pman.Dialog.CoreEnum.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pman.Dialog.CoreEnum.bjs b/Pman.Dialog.CoreEnum.bjs index 2ad5cdac..337d9854 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('display_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 \n _this.form.doAction('submit');\n \n}" }, "*prop": "buttons[]", "text": "OK", diff --git a/Pman.Dialog.CoreEnum.js b/Pman.Dialog.CoreEnum.js index e110fe7e..cf3b5ec1 100644 --- a/Pman.Dialog.CoreEnum.js +++ b/Pman.Dialog.CoreEnum.js @@ -162,7 +162,7 @@ Pman.Dialog.CoreEnum = { listeners : { click : function() { - var name = _this.form.findField('display_name').getValue(); + var name = _this.form.findField('name').getValue(); name = name.toUpperCase().replace(/[^A-Z]+/g, ''); if (!name.length) { Roo.MessageBox.alert("Error","Please fill in a valid name"); -- 2.39.2