aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-08-09 16:19:34 +0500
committerAbyss777 <abyss@fox5.ru>2017-08-09 16:19:34 +0500
commit959797ec42f8ac770531c73101aa716c1a7b08fa (patch)
tree528d74d36e68e964a6238bc5aec9ab56e3620af7 /web
parentfd4029af507afac83fa5db4b863b26ac2e205bd3 (diff)
downloadtrackermap-web-959797ec42f8ac770531c73101aa716c1a7b08fa.tar.gz
trackermap-web-959797ec42f8ac770531c73101aa716c1a7b08fa.tar.bz2
trackermap-web-959797ec42f8ac770531c73101aa716c1a7b08fa.zip
Select only visible device
Diffstat (limited to 'web')
-rw-r--r--web/app/controller/Root.js2
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);
}