From 44da5dc2888f49ed0935bfba46e27371f19d59e9 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 14 Sep 2012 15:05:33 +0800 Subject: [PATCH] Pman.Tab.AdminContactsGroupRight.bjs Pman.Tab.AdminContactsGroupRight.js --- Pman.Tab.AdminContactsGroupRight.bjs | 2 +- Pman.Tab.AdminContactsGroupRight.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Pman.Tab.AdminContactsGroupRight.bjs b/Pman.Tab.AdminContactsGroupRight.bjs index 13302fc..32c3a34 100644 --- a/Pman.Tab.AdminContactsGroupRight.bjs +++ b/Pman.Tab.AdminContactsGroupRight.bjs @@ -85,7 +85,7 @@ "items": [ { "listeners": { - "click": "function (_self, e)\n{\n \n var params = { group_id : _this.group_id };\n for(var i in _this.dataUpdate) {\n params['dataUpdate[' + i + ']'] = _this.dataUpdate[i];\n }\n //Roo.log(params);return;\n \n new Pman.Request({\n url : baseURL + '/Admin/GroupRights.php',\n method :'POST',\n params : params,\n success : function() {\n // do nothing\n \n //_this.grid.ds.remove(record);\n \n },\n failure : function() \n {\n Roo.MessageBox.alert(\"Error\", \"saving failed\", function() {\n _this.grid.footer.onClick('first');\n });\n }\n });\n}" + "click": "function (_self, e)\n{\n \n var params = { group_id : _this.group_id };\n for(var i in _this.dataUpdate) {\n params['dataUpdate[' + i + ']'] = _this.dataUpdate[i];\n }\n //Roo.log(params);return;\n \n new Pman.Request({\n url : baseURL + '/Admin/GroupRights.php',\n method :'POST',\n mask: \"Saving\",\n params : params,\n success : function() {\n // do nothing\n \n //_this.grid.ds.remove(record);\n \n },\n failure : function() \n {\n Roo.MessageBox.alert(\"Error\", \"saving failed\", function() {\n _this.grid.footer.onClick('first');\n });\n }\n });\n}" }, "text": "Save", "xtype": "Button", diff --git a/Pman.Tab.AdminContactsGroupRight.js b/Pman.Tab.AdminContactsGroupRight.js index 164aa3e..97759dd 100644 --- a/Pman.Tab.AdminContactsGroupRight.js +++ b/Pman.Tab.AdminContactsGroupRight.js @@ -243,6 +243,7 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({ new Pman.Request({ url : baseURL + '/Admin/GroupRights.php', method :'POST', + mask: "Saving", params : params, success : function() { // do nothing -- 2.39.2