From: edward Date: Thu, 15 Feb 2018 04:09:23 +0000 (+0800) Subject: Pman.Dialog.VerifyAccess.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=27373ca7cdb20c0b4e2bf9209714d288ce3d6616 Pman.Dialog.VerifyAccess.bjs Pman.Dialog.VerifyAccess.js --- diff --git a/Pman.Dialog.VerifyAccess.bjs b/Pman.Dialog.VerifyAccess.bjs index f5f006dc..0d5e8075 100644 --- a/Pman.Dialog.VerifyAccess.bjs +++ b/Pman.Dialog.VerifyAccess.bjs @@ -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 }\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 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}", "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 0ec78ab9..15da106c 100644 --- a/Pman.Dialog.VerifyAccess.js +++ b/Pman.Dialog.VerifyAccess.js @@ -122,6 +122,7 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, { if(_this.data.status * 1 == 0){ _this.form.findField('status').reset(); + Roo.log('reset???'); } return;