},
{
"listeners": {
- "|click": "function()\n{\n \n}\n "
+ "|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",