From: edward Date: Thu, 15 Feb 2018 03:31:38 +0000 (+0800) Subject: Pman.Dialog.VerifyAccess.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=6b438297a4500497a61127929b02dc06c59bba59 Pman.Dialog.VerifyAccess.bjs Pman.Dialog.VerifyAccess.js --- diff --git a/Pman.Dialog.VerifyAccess.bjs b/Pman.Dialog.VerifyAccess.bjs index 9650674b..74d6e92b 100644 --- a/Pman.Dialog.VerifyAccess.bjs +++ b/Pman.Dialog.VerifyAccess.bjs @@ -18,8 +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 //_this.dialog.show();\n Roo.log(res);\n return;\n _this.form.setValues(res.data);\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}", - "render" : "function (_self)\n{\n _this.modal = _self;\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 Roo.log(res);\n return;\n _this.form.setValues(res.data);\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 b25bde0f..566e887f 100644 --- a/Pman.Dialog.VerifyAccess.js +++ b/Pman.Dialog.VerifyAccess.js @@ -47,10 +47,6 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, { cls : 'enable-overflow', title : _this._strings['e2c9d024b79dfb48b42a7807206c6aed'] /* Verify New IP Access */, listeners : { - render : function (_self) - { - _this.modal = _self; - }, show : function (_self) { var path = window.location.pathname.split('/'); @@ -69,7 +65,6 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, { _to_data : 1 }, success : function(res) { - //_this.dialog.show(); Roo.log(res); return; _this.form.setValues(res.data);