From d719f91c4bbab11c955da8cacb23b8502aabecc5 Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 15 Feb 2018 11:52:14 +0800 Subject: [PATCH] Pman.Dialog.VerifyAccess.bjs Pman.Dialog.VerifyAccess.js --- Pman.Dialog.VerifyAccess.bjs | 3 ++- Pman.Dialog.VerifyAccess.js | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Pman.Dialog.VerifyAccess.bjs b/Pman.Dialog.VerifyAccess.bjs index 8f825f19..c14a6812 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 _this.form.findField('password').focus();\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 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 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'", @@ -74,6 +74,7 @@ "Boolean readOnly" : true, "xtype" : "TextArea", "string fieldLabel" : "User Agent", + "Number rows" : 3, "$ xns" : "Roo.bootstrap" } ] diff --git a/Pman.Dialog.VerifyAccess.js b/Pman.Dialog.VerifyAccess.js index 95c323c2..9bb82f32 100644 --- a/Pman.Dialog.VerifyAccess.js +++ b/Pman.Dialog.VerifyAccess.js @@ -169,8 +169,6 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, { actioncomplete : function (_self, action) { if (action.type == 'setdata') { - - _this.form.findField('password').focus(); return; } @@ -264,6 +262,7 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, { fieldLabel : _this._strings['dfb790522fdea3859af206d32916fe77'] /* User Agent */, name : 'user_agent', readOnly : true, + rows : 3, xns : Roo.bootstrap, '|xns' : 'Roo.bootstrap' } -- 2.39.2