Pman.Dialog.BAdminPassword.bjs
authorjohn <john@roojs.com>
Tue, 9 Oct 2018 05:13:36 +0000 (13:13 +0800)
committerjohn <john@roojs.com>
Tue, 9 Oct 2018 05:13:36 +0000 (13:13 +0800)
Pman.Dialog.BAdminPassword.js

Pman.Dialog.BAdminPassword.bjs
Pman.Dialog.BAdminPassword.js

index 218c4e9..faba7b0 100644 (file)
             },
             {
              "listeners" : {
-              "check" : "function (_self, checked)\n{\n    // keep firing when showing a dialog with checked checkbox...\n    \n    Roo.log(_this.dialog.getEl().isVisible());\n    \n    if(!_this.dialog.getEl().isVisible()) {\n        return;\n    }\n\n    if(checked) {\n        \n        Roo.log('who keep firing the check....');\n        \n        Pman.Dialog.BAdminStaffTwoFactorQRCode.show({});\n        \n        this.setBoxLabel('Untick to disable Two Factor authentication');\n        \n        return;\n    }\n    \n    this.setBoxLabel('Enable Two Factor Authentication');\n}"
+              "check" : "function (_self, checked)\n{\n    Roo.log(_this.dialog.getEl().isVisible());\n    \n    if(!_this.dialog.getEl().isVisible()) {\n        return;\n    }\n\n    if(checked) {\n        \n        Roo.log('who keep firing the check....');\n        \n        Pman.Dialog.BAdminStaffTwoFactorQRCode.show({});\n        \n        this.setBoxLabel('Untick to disable Two Factor authentication');\n        \n        return;\n    }\n    \n    this.setBoxLabel('Enable Two Factor Authentication');\n}"
              },
              "String name" : "_enable_oath_key",
              "Boolean checked" : false,
index de89e65..4462319 100644 (file)
@@ -260,8 +260,6 @@ Roo.apply(Pman.Dialog.BAdminPassword.prototype, {
               listeners : {
                check : function (_self, checked)
                 {
-                    // keep firing when showing a dialog with checked checkbox...
-                    
                     Roo.log(_this.dialog.getEl().isVisible());
                     
                     if(!_this.dialog.getEl().isVisible()) {