Pman.Tab.XtupleMetric.bjs
authorEdward <edward@roojs.com>
Tue, 5 Aug 2014 05:20:06 +0000 (13:20 +0800)
committerEdward <edward@roojs.com>
Tue, 5 Aug 2014 05:20:06 +0000 (13:20 +0800)
Pman.Tab.XtupleMetric.js

Pman.Tab.XtupleMetric.bjs
Pman.Tab.XtupleMetric.js

index a0c5952..5511e57 100644 (file)
                                     "xtype": "Button",
                                     "|icon": "rootURL + '/Pman/templates/images/search.gif'",
                                     "|xns": "Roo.Toolbar"
+                                },
+                                {
+                                    "listeners": {
+                                        "click": "function (_self, e)\n{\n    _this.searchBox.setValue('');\r\n    _this.status_type.setValue('');\r\n    _this.grid.footer.onClick('first');\r\n}"
+                                    },
+                                    "cls": "x-btn-icon",
+                                    "xtype": "Button",
+                                    "|icon": "rootURL + '/Pman/templates/images/edit-clear.gif'",
+                                    "|xns": "Roo.Toolbar"
                                 }
                             ]
                         },
index 1d61204..e2daebb 100644 (file)
@@ -137,6 +137,20 @@ Pman.Tab.XtupleMetric = new Roo.XComponent({
                             },
                             cls : 'x-btn-icon',
                             icon : rootURL + '/Pman/templates/images/search.gif'
+                        },
+                        {
+                            xtype: 'Button',
+                            xns: Roo.Toolbar,
+                            listeners : {
+                                click : function (_self, e)
+                                {
+                                    _this.searchBox.setValue('');\r
+                                    _this.status_type.setValue('');\r
+                                    _this.grid.footer.onClick('first');\r
+                                }
+                            },
+                            cls : 'x-btn-icon',
+                            icon : rootURL + '/Pman/templates/images/edit-clear.gif'
                         }
                     ]
                 },