Pman.Dialog.XtupleVendorEdit.bjs
authorEdward <edward@roojs.com>
Thu, 30 Jan 2014 04:56:33 +0000 (12:56 +0800)
committerEdward <edward@roojs.com>
Thu, 30 Jan 2014 04:56:33 +0000 (12:56 +0800)
Pman.Dialog.XtupleVendorEdit.js

Pman.Dialog.XtupleVendorEdit.bjs
Pman.Dialog.XtupleVendorEdit.js

index 5f5a78e..cf0f60e 100644 (file)
                                             "text": "Upload",
                                             "xtype": "Button",
                                             "|xns": "Roo.Toolbar"
+                                        },
+                                        {
+                                            "listeners": {
+                                                "|click": "function()\n{\n     Pman.genericDelete(_this, 'itemsrc'); \n}\n        "
+                                            },
+                                            "cls": "x-btn-text-icon",
+                                            "text": "Delete",
+                                            "xtype": "Button",
+                                            "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
+                                            "|xns": "Roo.Toolbar"
                                         }
                                     ]
                                 },
index da96341..f3ae577 100644 (file)
@@ -928,6 +928,19 @@ Pman.Dialog.XtupleVendorEdit = {
                                         }
                                     },
                                     text : "Upload"
+                                },
+                                {
+                                    xtype: 'Button',
+                                    xns: Roo.Toolbar,
+                                    listeners : {
+                                        click : function()
+                                        {
+                                             Pman.genericDelete(_this, 'itemsrc'); 
+                                        }
+                                    },
+                                    cls : 'x-btn-text-icon',
+                                    text : "Delete",
+                                    icon : rootURL + '/Pman/templates/images/trash.gif'
                                 }
                             ]
                         },