Pman.Dialog.BAdminStaffTwoFactorQRCode.bjs
authorEdward <edward@roojs.com>
Wed, 19 Dec 2018 07:14:05 +0000 (15:14 +0800)
committerEdward <edward@roojs.com>
Wed, 19 Dec 2018 07:14:05 +0000 (15:14 +0800)
Pman.Dialog.BAdminStaffTwoFactorQRCode.js

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

index 8232c68..5fc4e1c 100644 (file)
      "String html" : "Cancel",
      "* prop" : "buttons[]"
     },
+    {
+     "listeners" : {
+      "render" : "function (_self)\n{\n    _this.cancelBtn = this;\n}",
+      "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n    \n    return;\n}"
+     },
+     "String weight" : "default",
+     "xtype" : "Button",
+     "$ xns" : "Roo.bootstrap",
+     "String html" : "Cancel",
+     "* prop" : "buttons[]"
+    },
     {
      "listeners" : {
       "click" : "function (_self, e)\n{\n    _this.form.doAction('submit');\n}"
index 74e8d18..9ef62a6 100644 (file)
@@ -123,6 +123,25 @@ Roo.apply(Pman.Dialog.BAdminStaffTwoFactorQRCode.prototype, {
       xns : Roo.bootstrap,
       '|xns' : 'Roo.bootstrap'
      },
+     {
+      xtype : 'Button',
+      html : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
+      weight : 'default',
+      listeners : {
+       click : function (_self, e)
+        {
+            _this.dialog.hide();
+            
+            return;
+        },
+       render : function (_self)
+        {
+            _this.cancelBtn = this;
+        }
+      },
+      xns : Roo.bootstrap,
+      '|xns' : 'Roo.bootstrap'
+     },
      {
       xtype : 'Button',
       html : _this._strings['70d9be9b139893aa6c69b5e77e614311'] /* Confirm */,