From: Edward Date: Fri, 7 Dec 2018 03:35:54 +0000 (+0800) Subject: Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs X-Git-Url: http://git.roojs.org/?p=Pman.BAdmin;a=commitdiff_plain;h=f0e754cb58fa13df30d0d1b15aafba78e6271035 Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs Pman.Dialog.BAdminStaffTwoFactorQRCode.js --- diff --git a/Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs b/Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs index 25a56f2a..313b4bce 100644 --- a/Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs +++ b/Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs @@ -19,7 +19,7 @@ "items" : [ { "listeners" : { - "show" : "function (_self)\n{\n // this dialog is generic for change password for auth user && edit person\n if(!Pman.Login.authUser) {\n Roo.bootstrap.MessageBox.alert('Error', 'Please login again');\n return;\n }\n \n if(\n !_this.data.id ||\n _this.data.id.length == 0\n ) {\n Roo.bootstrap.MessageBox.alert('Error', 'Please select a person again');\n return;\n }\n \n /*\n switch(_this.data.title) {\n case '_setup':\n this.setTitle(this._setup_title);\n break;\n default:\n this.setTitle(this._default_title);\n break;\n }\n */\n \n new Pman.Request({\n url: baseURL + '/Roo/Core_person.php',\n method : 'GET',\n mask : 'Loading...',\n params : {\n _to_qr_code : 1,\n id: _this.data.id\n },\n \n success : function(res) {\n _this.qrcode_image.setSrc(res.data);\n },\n \n failure : function(res) {\n Roo.log(res);\n }\n });\n}" + "show" : "function (_self)\n{\n if(!Pman.Login.authUser) {\n Roo.bootstrap.MessageBox.alert('Error', 'Please login again');\n return;\n }\n \n if(\n !_this.data.id ||\n _this.data.id.length == 0\n ) {\n Roo.bootstrap.MessageBox.alert('Error', 'Please select a person again');\n return;\n }\n \n Roo.log(_this.dialog.closeEl);\n \n new Pman.Request({\n url: baseURL + '/Roo/Core_person.php',\n method : 'GET',\n mask : 'Loading...',\n params : {\n _to_qr_code : 1,\n id: _this.data.id\n },\n \n success : function(res) {\n _this.qrcode_image.setSrc(res.data);\n },\n \n failure : function(res) {\n Roo.log(res);\n }\n });\n}" }, "String cls" : "enable-overflow coba-qr-dialog", "Boolean allow_close" : true, diff --git a/Pman.Dialog.BAdminStaffTwoFactorQRCode.js b/Pman.Dialog.BAdminStaffTwoFactorQRCode.js index 9d7991dc..aecce6f5 100644 --- a/Pman.Dialog.BAdminStaffTwoFactorQRCode.js +++ b/Pman.Dialog.BAdminStaffTwoFactorQRCode.js @@ -50,7 +50,6 @@ Roo.apply(Pman.Dialog.BAdminStaffTwoFactorQRCode.prototype, { listeners : { show : function (_self) { - // this dialog is generic for change password for auth user && edit person if(!Pman.Login.authUser) { Roo.bootstrap.MessageBox.alert('Error', 'Please login again'); return; @@ -64,16 +63,7 @@ Roo.apply(Pman.Dialog.BAdminStaffTwoFactorQRCode.prototype, { return; } - /* - switch(_this.data.title) { - case '_setup': - this.setTitle(this._setup_title); - break; - default: - this.setTitle(this._default_title); - break; - } - */ + Roo.log(_this.dialog.closeEl); new Pman.Request({ url: baseURL + '/Roo/Core_person.php',