Pman.Tab.AdminContacts.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 12 May 2011 10:17:09 +0000 (18:17 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 12 May 2011 10:17:09 +0000 (18:17 +0800)
Pman.Tab.AdminContacts.js

index aa8e4ee..5b0835d 100644 (file)
@@ -624,6 +624,19 @@ Pman.Tab.AdminContacts = new Roo.util.Observable({
                             cls : 'x-btn-text-icon',
                             text : "Edit",
                             icon : Roo.rootURL + 'images/default/tree/leaf.gif'
+                        },
+                        {
+                            xtype: 'Button',
+                            xns: Roo.Toolbar,
+                            text : "Delete",
+                            cls : 'x-btn-text-icon',
+                            icon : rootURL + '/Pman/templates/images/trash.gif',
+                            listeners : {
+                                click : function()
+                                {
+                                     Pman.genericDelete(_this, 'Companies'); 
+                                }
+                            }
                         }
                     ]
                 },