From c6f9efc8b26254f4d11b20a508f5f4c1fb21a37b Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 15 Feb 2018 12:06:44 +0800 Subject: [PATCH] Pman.Dialog.VerifyAccess.bjs Pman.Dialog.VerifyAccess.js --- Pman.Dialog.VerifyAccess.bjs | 2 +- Pman.Dialog.VerifyAccess.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Pman.Dialog.VerifyAccess.bjs b/Pman.Dialog.VerifyAccess.bjs index 5cb47a99..cb0f1134 100644 --- a/Pman.Dialog.VerifyAccess.bjs +++ b/Pman.Dialog.VerifyAccess.bjs @@ -28,7 +28,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.sta)\n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.hide();\n \n Roo.get(document.body).mask('Start your Application');\n \n setTimeout(function() {\n window.location.href = baseURL;\n }, 500); \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 if(_this.data.status * 1 == 0){\n _this.form.findField('status').reset();\n }\n \n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.hide();\n \n Roo.get(document.body).mask('Start your Application');\n \n setTimeout(function() {\n window.location.href = baseURL;\n }, 500); \n \n return;\n }\n \n}", "render" : "function (_self,e)\n{\n _this.form = _self;\n \n}" }, "$ string url" : "baseURL + '/Core/VerifyAccess'", diff --git a/Pman.Dialog.VerifyAccess.js b/Pman.Dialog.VerifyAccess.js index 4a81b158..59d3b964 100644 --- a/Pman.Dialog.VerifyAccess.js +++ b/Pman.Dialog.VerifyAccess.js @@ -177,7 +177,10 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, { } if (action.type == 'load') { - if(_this.data.sta) + if(_this.data.status * 1 == 0){ + _this.form.findField('status').reset(); + } + return; } if (action.type =='submit') { -- 2.39.2