Pman.Dialog.VerifyAccess.bjs
authoredward <edward@roojs.com>
Thu, 15 Feb 2018 04:10:38 +0000 (12:10 +0800)
committeredward <edward@roojs.com>
Thu, 15 Feb 2018 04:10:38 +0000 (12:10 +0800)
Pman.Dialog.VerifyAccess.js

Pman.Dialog.VerifyAccess.bjs
Pman.Dialog.VerifyAccess.js

index 0d5e807..528d1e4 100644 (file)
@@ -27,7 +27,7 @@
     {
      "listeners" : {
       "actionfailed" : "function (_self, action)\n{\n    _this.dialog.el.unmask();\n    Roo.log(\"action failed\");\n    Roo.log(action);\n  \n    if(!action.result.errorMsg){\n        Roo.bootstrap.MessageBox.alert(\"Error\", \"Please contact system adminisrator\");\n    }\n   \n    var msg = action.result.errorMsg;\n   \n    if(msg.length >= 200){\n        msg = msg.substring(0,199) + '...'\n    }\n    \n    Roo.bootstrap.MessageBox.alert(\"Error\", msg);\n}",
-      "actioncomplete" : "function (_self, action)\n{\n    if (action.type == 'setdata') {\n        \n        return;\n    }\n    if (action.type == 'load') {\n        \n        if(_this.data.status * 1 == 0){\n            _this.form.findField('status').reset();\n            Roo.log('reset???');\n        }\n        \n        return;\n    }\n    if (action.type =='submit') {\n        \n        _this.dialog.hide();\n        \n        return;\n    }\n    \n}",
+      "actioncomplete" : "function (_self, action)\n{\n    if (action.type == 'setdata') {\n        \n        return;\n    }\n    if (action.type == 'load') {\n        \n        return;\n    }\n    if (action.type =='submit') {\n        \n        _this.dialog.hide();\n        \n        return;\n    }\n    \n}",
       "render" : "function (_self,e)\n{\n    _this.form = _self;\n    \n}"
      },
      "$ string url" : "baseURL + '/Core/VerifyAccess'",
index 15da106..bc0aa0d 100644 (file)
@@ -120,11 +120,6 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
             }
             if (action.type == 'load') {
                 
-                if(_this.data.status * 1 == 0){
-                    _this.form.findField('status').reset();
-                    Roo.log('reset???');
-                }
-                
                 return;
             }
             if (action.type =='submit') {