diff options
Diffstat (limited to 'web/app/controller')
-rw-r--r-- | web/app/controller/Root.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index 07fb3bea..d85102a7 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -234,6 +234,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(); |