aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/report/ReportController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/report/ReportController.js')
-rw-r--r--web/app/view/report/ReportController.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/app/view/report/ReportController.js b/web/app/view/report/ReportController.js
index 415cdfe3a..daeb8ddfc 100644
--- a/web/app/view/report/ReportController.js
+++ b/web/app/view/report/ReportController.js
@@ -52,6 +52,12 @@ Ext.define('Traccar.view.report.ReportController', {
onClearClick: function() {
Ext.getStore('Positions').removeAll();
this.fireEvent("reportClear");
+ },
+
+ onSelectionChange: function(selected) {
+ if (selected.getCount() > 0) {
+ this.fireEvent("selectReport", selected.getLastSelected());
+ }
}
});