Pman.Dialog.BAdminPasswordReset.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 7 Dec 2018 02:53:59 +0000 (10:53 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Dec 2018 02:53:59 +0000 (10:53 +0800)
Pman.Dialog.BAdminPasswordReset.js

Pman.Dialog.BAdminPasswordReset.bjs
Pman.Dialog.BAdminPasswordReset.js

index 166a1fb..e3260e5 100644 (file)
@@ -27,6 +27,7 @@
    },
    "String cls" : "enable-overflow roo-bootstrap-dialog",
    "Boolean animate" : false,
+   "Boolean allow_close" : false,
    "title" : "Reset management password",
    "xtype" : "Modal",
    "buttonPosition" : "center",
@@ -34,7 +35,7 @@
    "items" : [
     {
      "listeners" : {
-      "click" : "function (_self, e)\n{\n    _this.dialog.el.select('.modal-content', true).first().mask('Sending...');\n    _this.form.doAction('submit');\n}"
+      "click" : "function (_self, e)\n{\n    _this.callback.call(_this, false);\n}"
      },
      "String weight" : "default",
      "xtype" : "Button",
index 5182558..bb0824b 100644 (file)
@@ -48,6 +48,7 @@ Roo.apply(Pman.Dialog.BAdminPasswordReset.prototype, {
   var _this = this;
   this.dialog = Roo.factory({
     xtype : 'Modal',
+    allow_close : false,
     animate : false,
     buttonPosition : 'center',
     cls : 'enable-overflow roo-bootstrap-dialog',
@@ -71,8 +72,7 @@ Roo.apply(Pman.Dialog.BAdminPasswordReset.prototype, {
       listeners : {
        click : function (_self, e)
         {
-            _this.dialog.el.select('.modal-content', true).first().mask('Sending...');
-            _this.form.doAction('submit');
+            _this.callback.call(_this, false);
         }
       },
       xns : Roo.bootstrap,