Pman.Dialog.AdminEnumMerge.bjs
authorEdward <edward@roojs.com>
Thu, 4 Jun 2015 08:28:51 +0000 (16:28 +0800)
committerEdward <edward@roojs.com>
Thu, 4 Jun 2015 08:28:51 +0000 (16:28 +0800)
Pman.Dialog.AdminEnumMerge.js

Pman.Dialog.AdminEnumMerge.bjs
Pman.Dialog.AdminEnumMerge.js

index fe480e4..40ab9fe 100644 (file)
     },
     {
      "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    _this.form.doAction('submit');\n    \n}"
+      "|click" : "function() {\n\n    \n    _this.form.doAction('submit');\n    \n}"
      },
      "text" : "OK",
      "xtype" : "Button",
index 63b2644..ed25f2e 100644 (file)
@@ -74,14 +74,7 @@ Pman.Dialog.AdminEnumMerge = {
        listeners : {
         click : function() {
          
-             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");
-                 return;
-             }
-             _this.form.findField('name').setValue(name);
-          
+             
              _this.form.doAction('submit');
              
          }