PHP8
[Pman.BAdmin] / Pman.Dialog.BAdminForgotPassword.bjs
index b5a9fd7..11783db 100644 (file)
@@ -23,6 +23,7 @@
    },
    "String cls" : "enable-overflow roo-bootstrap-dialog",
    "Boolean animate" : true,
+   "Boolean allow_close" : false,
    "title" : "Management account recovery",
    "xtype" : "Modal",
    "buttonPosition" : "center",
@@ -52,7 +53,7 @@
          "listeners" : {
           "|render" : "function (_self) {\n    _this.form = _self;\n}",
           "|actionfailed" : "function (_self, action) {\n\n    Roo.log('action fail?');\n    Roo.log(action);\n    \n    _this.dialog.el.select('.modal-content', true).first().unmask();\n    \n    var err = 'Fill in all the required fields';\n    \n    if (typeof(action) != 'undefined' && action.failureType == 'server') {\n        err = action.result.errorMsg;\n    }\n    \n    Roo.bootstrap.MessageBox.alert('Error', err);\n}",
-          "|actioncomplete" : "function (_self, action) {\n\n    if (action.type == 'setdata') {\n        \n        _this.form.clearInvalid();\n        \n        return;\n    }\n    if (action.type == 'load') {\n         \n        return;\n    }\n    if (action.type =='submit') {\n        \n        _this.dialog.hide();\n        \n        if (_this.callback) {\n            _this.callback.call(_this, action.result);\n        }\n        \n        _this.form.reset();\n        \n        return;\n        \n    }\n}"
+          "|actioncomplete" : "function (_self, action) {\n\n    if (action.type == 'setdata') {\n        this.findField('passwordRequest').setValue(_this.data.email);\n        _this.form.clearInvalid();\n        \n        return;\n    }\n    if (action.type == 'load') {\n         \n        return;\n    }\n    if (action.type =='submit') {\n        \n        _this.dialog.hide();\n        \n        if (_this.callback) {\n            _this.callback.call(_this, action.result);\n        }\n        \n        _this.form.reset();\n        \n        return;\n        \n    }\n}"
          },
          "$ url" : "baseURL + '/Login'",
          "labelAlign" : "top",