Pman.Dialog.CoreEnum.bjs
authorEdward <edward@roojs.com>
Mon, 3 Mar 2014 09:16:42 +0000 (17:16 +0800)
committerEdward <edward@roojs.com>
Mon, 3 Mar 2014 09:16:42 +0000 (17:16 +0800)
Pman.Dialog.CoreEnum.js

Pman.Dialog.CoreEnum.bjs
Pman.Dialog.CoreEnum.js

index 2ad5cda..337d985 100644 (file)
@@ -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",
index e110fe7..cf3b5ec 100644 (file)
@@ -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");