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

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

index c3a91ae..7510c6a 100644 (file)
@@ -53,7 +53,7 @@
      "items" : [
       {
        "listeners" : {
-        "|actioncomplete" : "function (_self, action)\n{\n  if (action.type == 'setdata') {\n\n        if((typeof(_this.data.etype) == 'undefined') || !_this.data.etype.length){\n            Roo.MessageBox.alert('Error', 'Missing etype');\n            _this.dialog.hide();\n            return;\n        }\n        \n        if(typeof(_this.data.title) != 'undefined' && _this.data.title.length){\n            _this.dialog.setTitle(_this.data.title);\n        }\n  \n        if(_this.data.id){\n            _this.dialog.el.mask(\"Loading\");\n            this.load({ method: 'GET', params: { '_id' : _this.data.id }}); \n        }\n       \n       return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type == 'submit' ) {\n        _this.dialog.el.unmask();\n        _this.dialog.hide();\n\n        if (_this.callback) {\n           _this.callback.call(_this, action.result.data);\n        }\n        _this.form.reset();\n    }\n}\n",
+        "|actioncomplete" : "function (_self, action)\n{\n  if (action.type == 'setdata') {\n\n        \n        \n        if(typeof(_this.data.title) != 'undefined' && _this.data.title.length){\n            _this.dialog.setTitle(_this.data.title);\n        }\n  \n        if(_this.data.id){\n            _this.dialog.el.mask(\"Loading\");\n            this.load({ method: 'GET', params: { '_id' : _this.data.id }}); \n        }\n       \n       return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type == 'submit' ) {\n        _this.dialog.el.unmask();\n        _this.dialog.hide();\n\n        if (_this.callback) {\n           _this.callback.call(_this, action.result.data);\n        }\n        _this.form.reset();\n    }\n}\n",
         "|rendered" : "function (form)\n{\n   _this.form = form;\n}"
        },
        "$ url" : "baseURL + '/Roo/core_setting'",
index 1a94dec..546f186 100644 (file)
@@ -125,11 +125,7 @@ Pman.Dialog.CoreColumnConfig = {
           {
             if (action.type == 'setdata') {
           
-                  if((typeof(_this.data.etype) == 'undefined') || !_this.data.etype.length){
-                      Roo.MessageBox.alert('Error', 'Missing etype');
-                      _this.dialog.hide();
-                      return;
-                  }
+                  
                   
                   if(typeof(_this.data.title) != 'undefined' && _this.data.title.length){
                       _this.dialog.setTitle(_this.data.title);