Pman.Tab.AdminEnum.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 17 Apr 2015 04:34:52 +0000 (12:34 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 17 Apr 2015 04:34:52 +0000 (12:34 +0800)
Pman.Tab.AdminEnum.js

Pman.Tab.AdminEnum.bjs
Pman.Tab.AdminEnum.js

index df9d769..21795ce 100644 (file)
             },
             {
              "listeners" : {
-              "|click" : "function()\n{\n    var ids = [];\n    _this.grid.dataSource.each(function(rr) {\n        if (rr.selected) {\n            ids.push(rr.data.id);\n        }\n    });   \n    if (!ids.length) {\n        Roo.MessageBox.alert(\"Error\", \"Select rows by clicking on the Internal# column\");\n        return;\n    }\n    \n    Roo.MessageBox.confirm(\n        \"Confirm\", \n        \"Confirm Deletion of selected rows (some rows can not be deleted if they are referenced elsewhere\", \n        function(res) {\n            if(res != 'yes') {\n                return;\n            }\n            new Pman.Request({\n                method : 'POST',\n                url : baseURL + '/Roo/Core_enum',\n                params : {\n                    _ids  : ids.join(',')\n                },\n                success : function() {\n                    _this.grid.footer.onClick('refresh');\n                }\n            });\n        }\n    );\n    \n    \n}\n\n        "
+              "|click" : "function()\n{\n    var ids = [];\n    _this.grid.dataSource.each(function(rr) {\n        if (rr.selected) {\n            ids.push(rr.data.id);\n        }\n    });   \n    if (!ids.length) {\n        Roo.MessageBox.alert(\"Error\", \"Select rows by clicking on the Internal# column\");\n        return;\n    }\n    \n    Roo.MessageBox.confirm(\n        \"Confirm\", \n        \"Confirm Deletion of selected rows (some rows can not be deleted if they are referenced elsewhere\", \n        function(res) {\n            if(res != 'yes') {\n                return;\n            }\n            new Pman.Request({\n                method : 'POST',\n                url : baseURL + '/Roo/Core_enum',\n                params : {\n                    _delete  : ids.join(',')\n                },\n                success : function() {\n                    _this.grid.footer.onClick('refresh');\n                }\n            });\n        }\n    );\n    \n    \n}\n\n        "
              },
              "text" : "Delete",
              "xtype" : "Button",
index 9d3d677..5d69f38 100644 (file)
@@ -614,7 +614,7 @@ Pman.Tab.AdminEnum = new Roo.XComponent({
                             method : 'POST',
                             url : baseURL + '/Roo/Core_enum',
                             params : {
-                                _ids  : ids.join(',')
+                                _delete  : ids.join(',')
                             },
                             success : function() {
                                 _this.grid.footer.onClick('refresh');