aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/report
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/report')
-rw-r--r--web/app/view/report/ReportController.js7
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");
}