Pman.Dialog.AdminEnumImages.js
- "|click" : "function()\n{\n var ids = [];\n \n _\n \n if (!ids.length) {\n Roo.MessageBox.alert(\"Error\", \"Select rows by clicking the row\");\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 "
+ "|click" : "function()\n{\n var ids = [];\n \n var sc = _this.grid.getSelectionModel().getSelected();\n console.log(sc);\n if (!ids.length) {\n Roo.MessageBox.alert(\"Error\", \"Select rows by clicking the row\");\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 "
},
"text" : "Delete",
"xtype" : "Button",
},
"text" : "Delete",
"xtype" : "Button",
+ var sc = _this.grid.getSelectionModel().getSelected();
+ console.log(sc);
if (!ids.length) {
Roo.MessageBox.alert("Error", "Select rows by clicking the row");
return;
if (!ids.length) {
Roo.MessageBox.alert("Error", "Select rows by clicking the row");
return;