Pman.Dialog.XtupleVendorEdit.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 19 Dec 2013 05:12:44 +0000 (13:12 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 19 Dec 2013 05:12:44 +0000 (13:12 +0800)
Pman.Dialog.XtupleVendorEdit.js

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

index cd2dfaf..06b39e1 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"
+                                        },
                                         {
                                             "|xns": "Roo.Toolbar",
                                             "xtype": "Fill"
index fb352cb..b01b9cc 100644 (file)
@@ -685,6 +685,26 @@ Pman.Dialog.XtupleVendorEdit = {
                                     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: 'Fill',
                                     xns: Roo.Toolbar