Pman.Dialog.BAdminPassword.bjs
authorjohn <john@roojs.com>
Tue, 9 Oct 2018 04:41:38 +0000 (12:41 +0800)
committerjohn <john@roojs.com>
Tue, 9 Oct 2018 04:41:38 +0000 (12:41 +0800)
Pman.Dialog.BAdminPassword.js

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

index 5f84fa0..cbc0b62 100644 (file)
@@ -57,7 +57,7 @@
       {
        "listeners" : {
         "actionfailed" : "function (_self, action)\n{\n    if (action.type =='submit') {\n        \n        _this.submit_button.changeStatus('loaded');\n        \n        if (_this.callback) {\n            _this.callback.call(_this, action.result);\n        }\n    }\n}",
-        "actioncomplete" : "function (_self, action)\n{\n    if(action.type == 'setdata'){\n        \n        _this.form.findField('_enable_oath_key').setChecked(false, true);\n       \n        new Pman.Request({\n            url : baseURL + '/Login.php',\n            method : 'POST',\n            params : {\n                getAuthUser: true\n            }, \n            success : function(res) {\n                \n                if(res.data.oath_key_enable) {\n                    _this.form.findField('_enable_oath_key').setChecked(true, true);\n                }\n                \n                _this.form.clearInvalid();\n            }\n        });\n    }\n    \n    if (action.type == 'load') {\n        \n        Roo.log('invalid usage');\n    }\n    \n    if (action.type =='submit') {\n    \n        if (_this.callback) {\n            _this.callback.call(_this, action.result);\n        }\n        \n        _this.form.reset();\n        \n        _this.submit_button.changeStatus('loaded');\n        \n        _this.dialog.hide({});\n        \n        return;\n    }\n}",
+        "actioncomplete" : "function (_self, action)\n{\n    if(action.type == 'setdata'){\n        \n        _this.form.findField('_enable_oath_key').setChecked(false,true);\n       \n        new Pman.Request({\n            url : baseURL + '/Login.php',\n            method : 'POST',\n            params : {\n                getAuthUser: true\n            }, \n            success : function(res) {\n                \n                if(res.data.oath_key_enable) {\n                    _this.form.findField('_enable_oath_key').setChecked(true,true);\n                }\n                \n                _this.form.clearInvalid();\n            }\n        });\n    }\n    \n    if (action.type == 'load') {\n        \n        Roo.log('invalid usage');\n    }\n    \n    if (action.type =='submit') {\n    \n        if (_this.callback) {\n            _this.callback.call(_this, action.result);\n        }\n        \n        _this.form.reset();\n        \n        _this.submit_button.changeStatus('loaded');\n        \n        _this.dialog.hide({});\n        \n        return;\n    }\n}",
         "render" : "function (_self)\n{\n    _this.form = _self;\n}"
        },
        "$ url" : "baseURL+'/Login'",
index 22c5269..39c0edc 100644 (file)
@@ -137,7 +137,7 @@ Roo.apply(Pman.Dialog.BAdminPassword.prototype, {
           {
               if(action.type == 'setdata'){
                   
-                  _this.form.findField('_enable_oath_key').setChecked(false, true);
+                  _this.form.findField('_enable_oath_key').setChecked(false,true);
                  
                   new Pman.Request({
                       url : baseURL + '/Login.php',
@@ -148,7 +148,7 @@ Roo.apply(Pman.Dialog.BAdminPassword.prototype, {
                       success : function(res) {
                           
                           if(res.data.oath_key_enable) {
-                              _this.form.findField('_enable_oath_key').setChecked(true, true);
+                              _this.form.findField('_enable_oath_key').setChecked(true,true);
                           }
                           
                           _this.form.clearInvalid();