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

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

index 41ed2c7..a5c9d5f 100644 (file)
@@ -18,7 +18,7 @@
  "items" : [
   {
    "listeners" : {
-    "show" : "function (_self)\n{\n    var path = window.location.pathname.split('/');\n    \n    var authorized_key = path.pop();\n    \n    var id = path.pop();\n    \n    new Pman.Request({\n        url: baseURL + '/Core/VerifyAccess',\n        method : 'POST',\n        params : {\n            id : id,\n            authorized_key : authorized_key,\n            _to_data : 1\n        }, \n        success : function(res) {\n            _this.form.setValues(res.data);\n            return;\n        }\n    });\n}",
+    "show" : "function (_self)\n{\n    var path = window.location.pathname.split('/');\n    \n    var authorized_key = path.pop();\n    \n    var id = path.pop();\n    \n    new Pman.Request({\n        url: baseURL + '/Core/VerifyAccess',\n        method : 'POST',\n        params : {\n            id : id,\n            authorized_key : authorized_key,\n            _to_data : 1\n        }, \n        success : function(res) {\n            _this.form.setValues(res.data);\n            return;\n        },\n        failure: function(res) {\n            \n            return;\n       }\n    });\n}",
     "render" : "function (_self)\n{\n    _this.modal = _self;\n}"
    },
    "String cls" : "enable-overflow",
index bcaa086..bc44929 100644 (file)
@@ -71,7 +71,11 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, {
               success : function(res) {
                   _this.form.setValues(res.data);
                   return;
-              }
+              },
+              failure: function(res) {
+                  
+                  return;
+             }
           });
       }
     },