Pman.Dialog.BAdminForgotPassword.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 7 Dec 2018 01:51:42 +0000 (09:51 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 7 Dec 2018 01:51:42 +0000 (09:51 +0800)
Pman.Dialog.BAdminForgotPassword.js

Pman.Dialog.BAdminForgotPassword.bjs
Pman.Dialog.BAdminForgotPassword.js

index b5a9fd7..2205523 100644 (file)
@@ -52,7 +52,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",
index e519ee5..cc27e06 100644 (file)
@@ -96,7 +96,7 @@ Roo.apply(Pman.Dialog.BAdminForgotPassword.prototype, {
            actioncomplete : function (_self, action) {
             
                 if (action.type == 'setdata') {
-                    
+                    this.findField('passwordRequest').setValue(_this.data.email)
                     _this.form.clearInvalid();
                     
                     return;