{
- "id": "roo-file-59",
+ "id": "roo-file-60",
"name": "Pman.Tab.XtuplePurchasesVendors",
"parent": "Pman.Tab.XtuplePurchases",
"title": "",
"|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
"|xns": "Roo.Toolbar"
},
+ {
+ "listeners": {
+ "|click": "function()\n{\n var s = _this.grid.getSelectionModel().getSelected();\n \n if(!s || s.data.vend_id * 1 < 1){\n Roo.MessageBox.alert('Error', 'Please select a row');\n return;\n }\n \n Roo.MessageBox.confirm(\"Confirm\", \"Are you sure you want to delete that?\",\n function(v) {\n if (v != 'yes') {\n return;\n }\n new Pman.Request({\n method: 'POST',\n url: baseURL+ '/Roo/vendinfo',\n params : {\n _delete : s.data.vend_id\n },\n success : function() {\n _this.grid.footer.onClick('refresh');\n }\n });\n });\n}\n "
+ },
+ "cls": "x-btn-text-icon",
+ "text": "Delete",
+ "xtype": "Button",
+ "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
+ "|xns": "Roo.Toolbar"
+ },
{
"listeners": {
"click": "function (_self, e)\n{\n Pman.Dialog.Image.show(\n {\n _url : baseURL+'/Xtuple/Import/Vendors' \n \n },\n function (data) {\n _this.grid.footer.onClick('first');\n Roo.MessageBox.alert(\"Notice\", \"DONE\");\n// Roo.MessageBox.alert(\"Notice\", msg.join(\"\\n\"));\n\n }\n );\n}"