Pman.Tab.bjs
authorjohn <john@roojs.com>
Mon, 8 Oct 2018 05:52:16 +0000 (13:52 +0800)
committerjohn <john@roojs.com>
Mon, 8 Oct 2018 05:52:16 +0000 (13:52 +0800)
Pman.Tab.js

Pman.Tab.bjs
Pman.Tab.js

index 134e23f..d674e3c 100644 (file)
                    "items" : [
                     {
                      "listeners" : {
-                      "click" : "function (e)\n{\n\n    var _self = this;\n    \n    Pman.Dialog.BAdminPassword.show({ id : Pman.Login.authUser.id }, function(res) {\n        Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);\n    });\n    \n}"
+                      "click" : "function (e)\n{\n\n    var _self = this;\n    \n    Pman.Dialog.BAdminPassword.show(\n        { id : Pman.Login.authUser.id },\n        function(res) {\n            Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);\n        }\n    );\n    \n}"
                      },
                      "xtype" : "Button",
                      "string _change_passwd_success_body" : "Your password has been changed",
index ef1fc93..51b265d 100644 (file)
@@ -256,9 +256,12 @@ Pman.Tab = new Roo.XComponent({
                       
                           var _self = this;
                           
-                          Pman.Dialog.BAdminPassword.show({ id : Pman.Login.authUser.id }, function(res) {
-                              Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);
-                          });
+                          Pman.Dialog.BAdminPassword.show(
+                              { id : Pman.Login.authUser.id },
+                              function(res) {
+                                  Roo.bootstrap.MessageBox.alert(_self._change_passwd_success_title, _self._change_passwd_success_body);
+                              }
+                          );
                           
                       }
                     },