From 412bb3fe1c9fe9301c18c5c849e1432b58647055 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 20 May 2015 19:15:20 +1200 Subject: Implement report clearing --- web/app/view/report/ReportController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web/app/view') diff --git a/web/app/view/report/ReportController.js b/web/app/view/report/ReportController.js index 5c6578681..81da6fb83 100644 --- a/web/app/view/report/ReportController.js +++ b/web/app/view/report/ReportController.js @@ -19,8 +19,8 @@ Ext.define('Traccar.view.report.ReportController', { alias: 'controller.report', onShowClick: function() { - var deviceId = this.lookupReference('deviceField').getValue(); + var fromDate = this.lookupReference('fromDateField').getValue(); var fromTime = this.lookupReference('fromTimeField').getValue(); @@ -46,6 +46,7 @@ Ext.define('Traccar.view.report.ReportController', { }, onClearClick: function() { + Ext.getStore('Positions').removeAll(); } }); -- cgit v1.2.3