Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs
authorEdward <edward@roojs.com>
Fri, 7 Dec 2018 03:34:31 +0000 (11:34 +0800)
committerEdward <edward@roojs.com>
Fri, 7 Dec 2018 03:34:31 +0000 (11:34 +0800)
Pman.Dialog.BAdminStaffTwoFactorQRCode.js

Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs
Pman.Dialog.BAdminStaffTwoFactorQRCode.js

index 9c7bf52..25a56f2 100644 (file)
@@ -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",
index 8bf47f2..9d7991d 100644 (file)
@@ -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 : {