Pman.Tab.AdminEnum.bjs
authorMicheal <micheal@roojs.com>
Thu, 29 Jan 2015 08:14:31 +0000 (16:14 +0800)
committerMicheal <micheal@roojs.com>
Thu, 29 Jan 2015 08:14:31 +0000 (16:14 +0800)
Pman.Tab.AdminEnum.js

Pman.Tab.AdminEnum.bjs
Pman.Tab.AdminEnum.js

index 6921a02..483ab06 100644 (file)
                                                     "$ icon" : "rootURL + '/Pman/templates/images/search.gif'"
                                                 },
                                                 {
+                                                    "listeners" : {
+                                                        "click" : "function (_self, e)\n{\n     _this.searchBox.setValue('');\n     _this.grid.footer.onClick('first');\n}"
+                                                    },
                                                     "String cls" : "x-btn-icon",
                                                     "xtype" : "Button",
                                                     "$ icon" : "rootURL + '/Pman/templates/images/edit-clear.gif'",
index cbda710..4542d56 100644 (file)
@@ -541,7 +541,14 @@ Pman.Tab.AdminEnum = new Roo.XComponent({
                                         cls : 'x-btn-icon',
                                         xtype : 'Button',
                                         icon : rootURL + '/Pman/templates/images/edit-clear.gif',
-                                        xns : Roo.Toolbar
+                                        xns : Roo.Toolbar,
+                                        listeners : {
+                                               click : function (_self, e)
+                                                  {
+                                                       _this.searchBox.setValue('');
+                                                       _this.grid.footer.onClick('first');
+                                                  }
+                                        }
                                     }
                                 ]