aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-21 14:51:25 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-21 14:51:25 +1200
commit4a4b947cbbff599100e937400384b913b9152909 (patch)
treedd79e6eef9191e3628ab8fa7a1431b5f6684a231 /web
parent58f97621669b0b9a1778e74cbd3cb6c3743aec38 (diff)
downloadtrackermap-server-4a4b947cbbff599100e937400384b913b9152909.tar.gz
trackermap-server-4a4b947cbbff599100e937400384b913b9152909.tar.bz2
trackermap-server-4a4b947cbbff599100e937400384b913b9152909.zip
Clear old report before showing new
Diffstat (limited to 'web')
-rw-r--r--web/app/view/map/MapController.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js
index 7d1d2c186..cad8f502a 100644
--- a/web/app/view/map/MapController.js
+++ b/web/app/view/map/MapController.js
@@ -129,6 +129,8 @@ Ext.define('Traccar.view.map.MapController', {
},
reportShow: function() {
+ this.reportClear();
+
var vectorSource = this.getView().vectorSource;
var data = Ext.getStore('Positions').getData().clone();