"name" : "Pman.Tab.AdminEnum",
"parent" : "Pman.Tab.Admin",
"title" : "Pman.Tab.AdminEnum",
- "path" : "/home/benny/gitlive/Pman.Admin/Pman.Tab.AdminEnum.bjs",
+ "path" : "/home/edward/gitlive/Pman.Admin/Pman.Tab.AdminEnum.bjs",
"permname" : "",
"modOrder" : "500",
"strings" : {
"49ee3087348e8d44e1feda1917443987" : "Name",
"d41d8cd98f00b204e9800998ecf8427e" : " "
},
+ "named_strings" : {
+ "search_fieldLabel" : "13348442cc6a27032d2b4aa28b75a5d3"
+ },
"items" : [
{
"xtype" : "NestedLayoutPanel",
},
{
"listeners" : {
- "|click" : "function()\n{\n var ids = [];\n \n var sc = _this.egrid.getSelectionModel().getSelectedCell();\n console.log(sc);\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 "
+ "|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",
},
{
"listeners" : {
- "|click" : "function()\n{\n var s = _this.grid.getSelectionModel().getSelectedCell();\n \n if (!s.length) {\n Roo.MessageBox.alert(\"Error\", \"Select a Row\");\n return;\n }\n \n var d = _this.grid.ds.getAt(s[0]);\n\n Pman.Dialog.AdminEnumMerge.show(d.data, function() {\n _this.grid.footer.onClick('refresh');\n }); \n \n}\n"
+ "|click" : "function()\n{\n\n var s = _this.grid.getSelectionModel().getSelectedCell();\n\n if (!s.length) {\n Roo.MessageBox.alert(\"Error\", \"Select a Row\");\n return;\n }\n \n var d = _this.grid.ds.getAt(s[0]);\n console.log(Pman.Dialog);\n Pman.Dialog.AdminEnumMerge.show(d.data, function() {\n _this.grid.footer.onClick('refresh');\n }); \n \n}\n"
},
"text" : "Merge Option",
"xtype" : "Button",