Pman.Tab.AdminContactsGroupRight.bjs
[Pman.Admin] / Pman.Tab.AdminContactsGroupRight.bjs
index 92647f4..c8892e9 100644 (file)
@@ -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",