Pman.Dialog.VerifyAccess.bjs
authoredward <edward@roojs.com>
Thu, 15 Feb 2018 03:52:14 +0000 (11:52 +0800)
committeredward <edward@roojs.com>
Thu, 15 Feb 2018 03:52:14 +0000 (11:52 +0800)
Pman.Dialog.VerifyAccess.js

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

index 8f825f1..c14a681 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        _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"
           }
          ]
index 95c323c..9bb82f3 100644 (file)
@@ -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'
            }