"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",
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 : {