From bf539ee8d1ef52f286b734e2c237273fc104dccc Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 15 Feb 2018 13:22:57 +0800 Subject: [PATCH] Pman.Dialog.VerifyAccess.bjs Pman.Dialog.VerifyAccess.js --- Pman.Dialog.VerifyAccess.bjs | 2 +- Pman.Dialog.VerifyAccess.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pman.Dialog.VerifyAccess.bjs b/Pman.Dialog.VerifyAccess.bjs index f63e509f..1778ca42 100644 --- a/Pman.Dialog.VerifyAccess.bjs +++ b/Pman.Dialog.VerifyAccess.bjs @@ -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 mask : 'Loading...',\n params : {\n id : id,\n authorized_key : authorized_key,\n _to_data : 1\n }, \n success : function(res) {\n \n _this.data = res.data;\n \n if(_this.data.status != 0){\n _this.data.hide();\n Roo.bootstrap.MessageBox.alert('Notice', 'This IP has been verified [' + _this.data.ip + ']');\n return;\n }\n \n _this.form.setValues(_this.data);\n \n if(_this.data.status * 1 == 0){\n _this.form.findField('status').reset();\n }\n \n _this.form.clearInvalid();\n \n return;\n },\n failure: function(res) {\n \n _this.dialog.hide();\n \n Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);\n \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 mask : 'Loading...',\n params : {\n id : id,\n authorized_key : authorized_key,\n _to_data : 1\n }, \n success : function(res) {\n \n _this.data = res.data;\n \n if(_this.data.status != 0){\n _this.dialog.hide();\n Roo.bootstrap.MessageBox.alert('Notice', 'This IP has been verified [' + _this.data.ip + ']');\n return;\n }\n \n _this.form.setValues(_this.data);\n \n if(_this.data.status * 1 == 0){\n _this.form.findField('status').reset();\n }\n \n _this.form.clearInvalid();\n \n return;\n },\n failure: function(res) {\n \n _this.dialog.hide();\n \n Roo.bootstrap.MessageBox.alert('Error', res.errorMsg);\n \n return;\n }\n });\n}" }, "String cls" : "enable-overflow", "Boolean allow_close" : false, diff --git a/Pman.Dialog.VerifyAccess.js b/Pman.Dialog.VerifyAccess.js index f23f89dc..f7bd7d84 100644 --- a/Pman.Dialog.VerifyAccess.js +++ b/Pman.Dialog.VerifyAccess.js @@ -69,7 +69,7 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, { _this.data = res.data; if(_this.data.status != 0){ - _this.data.hide(); + _this.dialog.hide(); Roo.bootstrap.MessageBox.alert('Notice', 'This IP has been verified [' + _this.data.ip + ']'); return; } -- 2.39.2