From 0f00f59549e6c632640c2ca8005a16030ca6672a Mon Sep 17 00:00:00 2001 From: Edward Date: Fri, 7 Dec 2018 11:34:31 +0800 Subject: [PATCH] Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs Pman.Dialog.BAdminStaffTwoFactorQRCode.js --- Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs | 2 +- Pman.Dialog.BAdminStaffTwoFactorQRCode.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs b/Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs index 9c7bf521..25a56f2a 100644 --- a/Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs +++ b/Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs @@ -22,7 +22,7 @@ "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}" }, "String cls" : "enable-overflow coba-qr-dialog", - "Boolean allow_close" : false, + "Boolean allow_close" : true, "xtype" : "Modal", "$ xns" : "Roo.bootstrap", "String title" : "Scan this into Google Authenticator", diff --git a/Pman.Dialog.BAdminStaffTwoFactorQRCode.js b/Pman.Dialog.BAdminStaffTwoFactorQRCode.js index 8bf47f2d..9d7991dc 100644 --- a/Pman.Dialog.BAdminStaffTwoFactorQRCode.js +++ b/Pman.Dialog.BAdminStaffTwoFactorQRCode.js @@ -44,7 +44,7 @@ Roo.apply(Pman.Dialog.BAdminStaffTwoFactorQRCode.prototype, { var _this = this; this.dialog = Roo.factory({ xtype : 'Modal', - allow_close : false, + allow_close : true, cls : 'enable-overflow coba-qr-dialog', title : _this._strings['4674ee874911c910f2356ef9ec6ab7f9'] /* Scan this into Google Authenticator */, listeners : { -- 2.39.2