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

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

index 26efee9..175819b 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 + '/Roo/Core_enum.php',\n          method : 'POST',\n          params : {\n              id : record.data.id,\n              etype : _this.data.etype,\n              name :  record.data.name,\n              active : record.data.active,\n              seqid : record.data.seqid,\n              display_name : record.data.display_name\n          }, \n          success : function(res) {\n              //Roo.log(data);\n              // update the ID if it's not set..\n              if (record.data.id * 1 < 1) {\n                  record.set('id', res.data.id);\n              }\n          }\n      });\n        \n        _this.form.clearInvalid();\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 + '/Roo/Core_enum.php',\n            method : 'POST',\n            params : {\n                id : record.data.id,\n                etype : _this.data.etype,\n                name :  record.data.name,\n                active : record.data.active,\n                seqid : record.data.seqid,\n                display_name : record.data.display_name\n            }, \n            success : function(res) {\n                //Roo.log(data);\n                // update the ID if it's not set..\n                if (record.data.id * 1 < 1) {\n                    record.set('id', res.data.id);\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 e52f290..5d3e170 100644 (file)
@@ -139,27 +139,27 @@ Roo.apply(Pman.Dialog.BAdminPassword.prototype, {
                  
                  _this.form.findField('_enable_oath_key').setChecked(false, true);
                  
-                 new Pman.Request({
-                    url : baseURL + '/Roo/Core_enum.php',
-                    method : 'POST',
-                    params : {
-                        id : record.data.id,
-                        etype : _this.data.etype,
-                        name :  record.data.name,
-                        active : record.data.active,
-                        seqid : record.data.seqid,
-                        display_name : record.data.display_name
-                    }, 
-                    success : function(res) {
-                        //Roo.log(data);
-                        // update the ID if it's not set..
-                        if (record.data.id * 1 < 1) {
-                            record.set('id', res.data.id);
-                        }
-                    }
-                });
-                  
-                  _this.form.clearInvalid();
+                  new Pman.Request({
+                      url : baseURL + '/Roo/Core_enum.php',
+                      method : 'POST',
+                      params : {
+                          id : record.data.id,
+                          etype : _this.data.etype,
+                          name :  record.data.name,
+                          active : record.data.active,
+                          seqid : record.data.seqid,
+                          display_name : record.data.display_name
+                      }, 
+                      success : function(res) {
+                          //Roo.log(data);
+                          // update the ID if it's not set..
+                          if (record.data.id * 1 < 1) {
+                              record.set('id', res.data.id);
+                          }
+                          
+                          _this.form.clearInvalid();
+                      }
+                  });
               }
               
               if (action.type == 'load') {