Pman.Tab.XtupleTerms.bjs
authorEdward <edward@roojs.com>
Mon, 1 Dec 2014 09:29:15 +0000 (17:29 +0800)
committerEdward <edward@roojs.com>
Mon, 1 Dec 2014 09:29:15 +0000 (17:29 +0800)
Pman.Tab.XtupleTerms.js

Pman.Tab.XtupleTerms.bjs
Pman.Tab.XtupleTerms.js

index f1134db..1211207 100644 (file)
                                                     "cls" : "x-btn-text-icon",
                                                     "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
                                                     "$ xns" : "Roo.Toolbar"
+                                                },
+                                                {
+                                                    "listeners" : {
+                                                        "|click" : "function()\n{\n     Pman.genericDelete(_this, 'ipshead'); \n}\n        "
+                                                    },
+                                                    "text" : "Delete",
+                                                    "xtype" : "Button",
+                                                    "cls" : "x-btn-text-icon",
+                                                    "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
+                                                    "$ xns" : "Roo.Toolbar"
                                                 }
                                             ]
                                         },
index 46eae6b..58f594a 100644 (file)
@@ -104,6 +104,20 @@ Pman.Tab.XtupleTerms = new Roo.XComponent({
                                                      }); 
                                                   }
                                         }
+                                    },
+                                       {
+                                        '|xns' : 'Roo.Toolbar',
+                                        text : "Delete",
+                                        xtype : 'Button',
+                                        cls : 'x-btn-text-icon',
+                                        icon : rootURL + '/Pman/templates/images/trash.gif',
+                                        xns : Roo.Toolbar,
+                                        listeners : {
+                                               click : function()
+                                                  {
+                                                       Pman.genericDelete(_this, 'ipshead'); 
+                                                  }
+                                        }
                                     }
                                 ]