diff options
Diffstat (limited to 'web/app/view/report/ReportController.js')
-rw-r--r-- | web/app/view/report/ReportController.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/web/app/view/report/ReportController.js b/web/app/view/report/ReportController.js index d62e87973..415cdfe3a 100644 --- a/web/app/view/report/ReportController.js +++ b/web/app/view/report/ReportController.js @@ -41,15 +41,16 @@ Ext.define('Traccar.view.report.ReportController', { deviceId: deviceId, from: from, to: to + }, + scope: this, + callback: function() { + this.fireEvent("reportShow"); } }); - - this.fireEvent("reportShow"); }, onClearClick: function() { Ext.getStore('Positions').removeAll(); - this.fireEvent("reportClear"); } |