Pman.Tab.XtupleReports.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 18 Dec 2013 12:07:22 +0000 (20:07 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 18 Dec 2013 12:07:22 +0000 (20:07 +0800)
Pman.Tab.XtupleReports.js

Pman.Tab.XtupleReports.bjs
Pman.Tab.XtupleReports.js

index cb18884..e0eea4d 100644 (file)
                                                     "|icon": "rootURL + '/Pman/templates/images/search.gif'",
                                                     "|xns": "Roo.Toolbar"
                                                 },
+                                                {
+                                                    "listeners": {
+                                                        "|click": "function (_self, e)\n{\n    _this.searchBox.setValue('');\n    _this.publication_name_combo.setValue('');\n    _this.publication_lang_combo.setValue('');\n    _this.country_combo.setValue('');\n    _this.category_media_id_combo.setValue('');\n    _this.role_combo.setValue('');      \n\n    \n    _this.grid.footer.onClick('first');\n}"
+                                                    },
+                                                    "cls": "x-btn-icon",
+                                                    "xtype": "Button",
+                                                    "|icon": "rootURL + '/Pman/templates/images/edit-clear.gif'",
+                                                    "|xns": "Roo.Toolbar"
+                                                },
                                                 {
                                                     "text": "Add",
                                                     "xtype": "Button",
index ad34c57..b06ff4b 100644 (file)
@@ -139,6 +139,26 @@ Pman.Tab.XtupleReports = 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('');
+                                                _this.publication_name_combo.setValue('');
+                                                _this.publication_lang_combo.setValue('');
+                                                _this.country_combo.setValue('');
+                                                _this.category_media_id_combo.setValue('');
+                                                _this.role_combo.setValue('');      
+                                            
+                                                
+                                                _this.grid.footer.onClick('first');
+                                            }
+                                        },
+                                        cls : 'x-btn-icon',
+                                        icon : rootURL + '/Pman/templates/images/edit-clear.gif'
+                                    },
                                     {
                                         xtype: 'Button',
                                         xns: Roo.Toolbar,