From 167dec228bf9227fbf1f9fa4a428b8bb309c5f94 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 15 Jul 2017 18:01:12 +1200 Subject: Improvement to events panel --- web/app/controller/Root.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web/app/controller') diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index 337ec4c5..27f4f627 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -233,6 +233,9 @@ Ext.define('Traccar.controller.Root', { } else { store.add(Ext.create('Traccar.model.Position', array[i])); } + if (Ext.getStore('Events').findRecord('positionId', array[i].id, 0, false, false, true)) { + Ext.getStore('EventPositions').add(Ext.create('Traccar.model.Position', array[i])); + } } if (first) { this.zoomToAllDevices(); -- cgit v1.2.3