Pman.Dialog.CoreColumnConfig.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 26 Apr 2021 07:54:01 +0000 (15:54 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 26 Apr 2021 07:54:01 +0000 (15:54 +0800)
Pman.Dialog.CoreColumnConfig.js

Pman.Dialog.CoreColumnConfig.bjs
Pman.Dialog.CoreColumnConfig.js

index 9a97a1b..1bff557 100644 (file)
@@ -57,9 +57,6 @@
        "$ xns" : "Roo.form",
        "items" : [
         {
-         "listeners" : {
-          "keyup" : "function (_self, e)\n{\n    _this.form.findField('name').setValue(this.getValue().replace(/[^a-z0-9]/ig, '').toUpperCase());\n    \n}"
-         },
          "fieldLabel" : "Description",
          "xtype" : "TextField",
          "allowBlank" : false,
     },
     {
      "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" : "Save",
      "xtype" : "Button",
index deff50e..9e9cbed 100644 (file)
@@ -84,14 +84,7 @@ Pman.Dialog.CoreColumnConfig = {
       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');
             
         }
@@ -160,13 +153,6 @@ Pman.Dialog.CoreColumnConfig = {
           fieldLabel : _this._strings['b5a7adde1af5c87d7fd797b6245c2a39'] /* Description */,
           name : 'description',
           width : 250,
-          listeners : {
-           keyup : function (_self, e)
-            {
-                _this.form.findField('name').setValue(this.getValue().replace(/[^a-z0-9]/ig, '').toUpperCase());
-                
-            }
-          },
           xns : Roo.form,
           '|xns' : 'Roo.form'
          },