diff options
author | Abyss777 <abyss@fox5.ru> | 2017-08-09 16:19:34 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-08-09 16:19:34 +0500 |
commit | 959797ec42f8ac770531c73101aa716c1a7b08fa (patch) | |
tree | 528d74d36e68e964a6238bc5aec9ab56e3620af7 | |
parent | fd4029af507afac83fa5db4b863b26ac2e205bd3 (diff) | |
download | trackermap-web-959797ec42f8ac770531c73101aa716c1a7b08fa.tar.gz trackermap-web-959797ec42f8ac770531c73101aa716c1a7b08fa.tar.bz2 trackermap-web-959797ec42f8ac770531c73101aa716c1a7b08fa.zip |
Select only visible device
-rw-r--r-- | web/app/controller/Root.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index 902ef215..baba68a1 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -242,7 +242,7 @@ Ext.define('Traccar.controller.Root', { if (first) { deviceId = Ext.Object.fromQueryString(window.location.search).deviceId; if (deviceId) { - device = Ext.getStore('Devices').getById(deviceId); + device = Ext.getStore('VisibleDevices').findRecord('id', deviceId, 0, false, true, true); if (device) { this.fireEvent('selectdevice', device, true); } |