Pman.Tab.AdminLogDrill.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 8 Feb 2012 04:14:21 +0000 (12:14 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 8 Feb 2012 04:14:21 +0000 (12:14 +0800)
Pman.Tab.AdminLogDrill.bjs
Pman.Tab.AdminLogDrill.js
Pman.Tab.AdminLogDrill.js

Pman.Tab.AdminLogDrill.bjs
Pman.Tab.AdminLogDrill.js

index fb05516..e5af84e 100644 (file)
@@ -63,7 +63,7 @@
                                     "items": [
                                         {
                                             "listeners": {
-                                                "beforeload": "function (_self, o)\n{\n    \n    \n    if (! _this.dateFrom) {\n        return;\n    }\n    if (_this.tablegrid) {\n        _this.tablegrid.ds.removeAll();\n    }\n    \n    o.params = o.params || {};\n     \n    var act = _this.actionSel ? _this.actionSel.getValue() : '';\n    if (act.length) {\n        o.params.action = act;\n    }\n    var tbl = _this.affectSel ? _this.affectSel.getValue() : '';\n    if (tbl.length) {\n        o.params.on_table = tbl;\n    }\n    act = _this.dateFrom.getValue();\n    if (act.format) {\n        o.params['query[from]'] = act.format('Y-m-d');\n    }\n    act = _this.dateTo.getValue();\n    if (act.format) {\n        o.params['query[to]'] = act.format('Y-m-d');\n    }\n    \n    \n    \n    o.params['query[person_sum]'] = 1;\n    o.params._columns = 'person_id,person_id_name,person_id_email,qty,uqty';\n    o.params.limit = 999;\n \n}"
+                                                "beforeload": "function (_self, o)\n{\n    \n    \n    if (! _this.dateFrom) {\n        return;\n    }\n    if (_this.tablegrid) {\n        _this.tablegrid.ds.removeAll();\n    }\n     try {\n         _this.panel.layout.getRegion('east').getActivePanel().grid.ds.removeAll();\n         \n    } catch (e) {\n        // do nothing..\n    }\n    o.params = o.params || {};\n     \n    var act = _this.actionSel ? _this.actionSel.getValue() : '';\n    if (act.length) {\n        o.params.action = act;\n    }\n    var tbl = _this.affectSel ? _this.affectSel.getValue() : '';\n    if (tbl.length) {\n        o.params.on_table = tbl;\n    }\n    act = _this.dateFrom.getValue();\n    if (act.format) {\n        o.params['query[from]'] = act.format('Y-m-d');\n    }\n    act = _this.dateTo.getValue();\n    if (act.format) {\n        o.params['query[to]'] = act.format('Y-m-d');\n    }\n    \n    \n    \n    o.params['query[person_sum]'] = 1;\n    o.params._columns = 'person_id,person_id_name,person_id_email,qty,uqty';\n    o.params.limit = 999;\n \n}"
                                             },
                                             "*prop": "dataSource",
                                             "remoteSort": true,
index 124c04e..bcc9973 100644 (file)
@@ -91,7 +91,12 @@ Pman.Tab.AdminLogDrill = new Roo.util.Observable({
                                         if (_this.tablegrid) {
                                             _this.tablegrid.ds.removeAll();
                                         }
-                                        
+                                         try {
+                                             _this.panel.layout.getRegion('east').getActivePanel().grid.ds.removeAll();
+                                             
+                                        } catch (e) {
+                                            // do nothing..
+                                        }
                                         o.params = o.params || {};
                                          
                                         var act = _this.actionSel ? _this.actionSel.getValue() : '';