Pman.Tab.BAdminStaff.bjs
authorEdward <edward@roojs.com>
Fri, 7 Dec 2018 04:00:17 +0000 (12:00 +0800)
committerEdward <edward@roojs.com>
Fri, 7 Dec 2018 04:00:17 +0000 (12:00 +0800)
Pman.Tab.BAdminStaff.js

Pman.Tab.BAdminStaff.bjs
Pman.Tab.BAdminStaff.js

index 7575992..8a4acb5 100644 (file)
                    "items" : [
                     {
                      "listeners" : {
-                      "click" : "function (_self, e)\n{\n    Pman.Dialog.BAdminStaff.show({ \n        id : 0,\n        company_id : Pman.Login.authUser.company_id\n    }, function(res) {\n    \n        if(res.length_oath_key * 1 < 1){\n            _this.member_grid.footer.onClick('first');\n            return;\n        }\n        \n        Pman.Dialog.BAdminStaffTwoFactorQRCode.show({\n            id : res.id\n        }, function(res){\n            _this.member_grid.footer.onClick('first');\n        });\n    }); \n\n}"
+                      "click" : "function (_self, e)\n{\n    Pman.Dialog.BAdminStaff.show({ \n        id : 0,\n        company_id : Pman.Login.authUser.company_id\n    }, function(res) {\n    \n        if(res.length_oath_key * 1 < 1){\n            _this.member_grid.footer.onClick('first');\n            return;\n        }\n        \n        Pman.Dialog.BAdminStaffTwoFactorQRCode.show({\n            id : res.id,\n            allow_close: false,\n            allow_cancel : true\n        }, function(res){\n            _this.member_grid.footer.onClick('first');\n        });\n    }); \n\n}"
                      },
                      "String cls" : "roo-toolbar-button",
                      "String weight" : "default",
index e2cdbd6..19ce651 100644 (file)
@@ -165,7 +165,9 @@ Pman.Tab.BAdminStaff = new Roo.XComponent({
                              }
                              
                              Pman.Dialog.BAdminStaffTwoFactorQRCode.show({
-                                 id : res.id
+                                 id : res.id,
+                                 allow_close: false,
+                                 allow_cancel : true
                              }, function(res){
                                  _this.member_grid.footer.onClick('first');
                              });