From: Alan Knowles Date: Fri, 14 Sep 2012 06:45:00 +0000 (+0800) Subject: Pman.Tab.AdminContactsGroupRight.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=ca478662bcae9ee622e377377ac439adc73c9dae Pman.Tab.AdminContactsGroupRight.bjs Pman.Tab.AdminContactsGroupRight.js --- diff --git a/Pman.Tab.AdminContactsGroupRight.bjs b/Pman.Tab.AdminContactsGroupRight.bjs index c8892e9..d99766c 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 = {};\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}" + "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 : 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 3c3df6d..e4119b6 100644 --- a/Pman.Tab.AdminContactsGroupRight.js +++ b/Pman.Tab.AdminContactsGroupRight.js @@ -240,10 +240,7 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({ new Pman.Request({ url : baseURL + '/GroupRights.php', method :'POST', - params : { - dataUpdate : _this.dataUpdate - - }, + params : params, success : function() { // do nothing