From ed45aba1943367a375e80a428f47c1adfbec557c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 24 Jun 2015 20:06:42 +1200 Subject: Fix device state updating --- web/app/view/state/StateController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web') diff --git a/web/app/view/state/StateController.js b/web/app/view/state/StateController.js index eeb04bb6d..6b6ccf184 100644 --- a/web/app/view/state/StateController.js +++ b/web/app/view/state/StateController.js @@ -84,7 +84,7 @@ Ext.define('Traccar.view.state.StateController', { } } - var xml = 'aabb';//position.get('other'); + var xml = position.get('other'); var other = this.parseXml(xml); for (var key in other) { if (other.hasOwnProperty(key)) { @@ -100,7 +100,7 @@ Ext.define('Traccar.view.state.StateController', { }, selectDevice: function(device) { - this.deviceId = device.get('id'); + this.deviceId = device.get('deviceId'); var found = Ext.getStore('LiveData').query('deviceId', this.deviceId); if (found.getCount() > 0) { this.updatePosition(found.first()); -- cgit v1.2.3