From f89dc37fac17a4397856b82a73872d23a88bc39d Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 13 Sep 2012 15:42:13 +0800 Subject: [PATCH] Pman.Tab.AdminContactsGroupRight.bjs Pman.Tab.AdminContactsGroupRight.js --- Pman.Tab.AdminContactsGroupRight.bjs | 2 +- Pman.Tab.AdminContactsGroupRight.js | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Pman.Tab.AdminContactsGroupRight.bjs b/Pman.Tab.AdminContactsGroupRight.bjs index a501f44..71d79b1 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 + '/Roo/GroupRights.php',\n method :'POST',\n params : {\n id : record.data.id,\n active: record.data.active\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 new Pman.Request({\n url : baseURL + '/Roo/GroupRights.php',\n method :'POST',\n params : _this.dataUpdate,\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 88afe31..04eb13e 100644 --- a/Pman.Tab.AdminContactsGroupRight.js +++ b/Pman.Tab.AdminContactsGroupRight.js @@ -217,11 +217,7 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({ new Pman.Request({ url : baseURL + '/Roo/GroupRights.php', method :'POST', - params : { - id : record.data.id, - active: record.data.active - - }, + params : _this.dataUpdate, success : function() { // do nothing -- 2.39.2