From b54cb7576fde030df9732f96121f2eed849e5c60 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 14 Sep 2012 14:44:07 +0800 Subject: [PATCH] Pman.Tab.AdminContactsGroupRight.bjs Pman.Tab.AdminContactsGroupRight.js --- Pman.Tab.AdminContactsGroupRight.bjs | 2 +- Pman.Tab.AdminContactsGroupRight.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Pman.Tab.AdminContactsGroupRight.bjs b/Pman.Tab.AdminContactsGroupRight.bjs index 92647f4..c8892e9 100644 --- a/Pman.Tab.AdminContactsGroupRight.bjs +++ b/Pman.Tab.AdminContactsGroupRight.bjs @@ -85,7 +85,7 @@ "items": [ { "listeners": { - "click": "function (_self, e)\n{\n \n new Pman.Request({\n url : baseURL + '/GroupRights.php',\n method :'POST',\n params : {\n dataUpdate : _this.dataUpdate\n \n },\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 = {};\n for(var i in _this.dataUpdate) {\n params['dataUpdate[' + i + ']'] = _this.dataUpdate[i];\n }\n \n \n new Pman.Request({\n url : baseURL + '/GroupRights.php',\n method :'POST',\n params : {\n dataUpdate : _this.dataUpdate\n \n },\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 092fad9..3c3df6d 100644 --- a/Pman.Tab.AdminContactsGroupRight.js +++ b/Pman.Tab.AdminContactsGroupRight.js @@ -231,6 +231,12 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({ click : function (_self, e) { + var params = {}; + for(var i in _this.dataUpdate) { + params['dataUpdate[' + i + ']'] = _this.dataUpdate[i]; + } + + new Pman.Request({ url : baseURL + '/GroupRights.php', method :'POST', -- 2.39.2