Pman.Tab.AdminCompanies.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 12 May 2011 08:14:23 +0000 (16:14 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 12 May 2011 08:14:23 +0000 (16:14 +0800)
Pman.Tab.AdminCompanies.js

index 6ae8c14..794d1f4 100644 (file)
@@ -95,7 +95,9 @@ Pman.Tab.AdminCompanies = new Roo.util.Observable({
                                     beforeload : function (_self, o)
                                     {
                                        o.params = o.params || {};
-                                       o.params['query[name]'] = _this.searchBox.getValue();
+                                       if (_this.searchBox) {
+                                           o.params['query[name]'] = _this.searchBox.getValue();
+                                       }
                                     }
                                 },
                                 remoteSort : true,