diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-24 20:06:42 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-24 20:06:42 +1200 |
commit | ed45aba1943367a375e80a428f47c1adfbec557c (patch) | |
tree | d2c6118f5d33fe8d454d91be4f60fe65243b6dce /web/app/view | |
parent | 494a76c2cbaaa87916154ef959e0b65b580a1b38 (diff) | |
download | trackermap-server-ed45aba1943367a375e80a428f47c1adfbec557c.tar.gz trackermap-server-ed45aba1943367a375e80a428f47c1adfbec557c.tar.bz2 trackermap-server-ed45aba1943367a375e80a428f47c1adfbec557c.zip |
Fix device state updating
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/state/StateController.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 = '<info><a>aa</a><b>bb</b></info>';//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()); |