aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-24 20:12:01 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-24 20:12:01 +1200
commitbfe1227df5892e7542d80559363833c302a02077 (patch)
tree81d70f012cb45e66a16e18417690294de496b79a /web
parented45aba1943367a375e80a428f47c1adfbec557c (diff)
downloadtraccar-server-bfe1227df5892e7542d80559363833c302a02077.tar.gz
traccar-server-bfe1227df5892e7542d80559363833c302a02077.tar.bz2
traccar-server-bfe1227df5892e7542d80559363833c302a02077.zip
Properly fix state update
Diffstat (limited to 'web')
-rw-r--r--web/app/view/state/StateController.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/app/view/state/StateController.js b/web/app/view/state/StateController.js
index 6b6ccf184..b6a6cc542 100644
--- a/web/app/view/state/StateController.js
+++ b/web/app/view/state/StateController.js
@@ -30,8 +30,8 @@ Ext.define('Traccar.view.state.StateController', {
init: function() {
var store = Ext.getStore('LiveData');
- store.on('add', this.add);
- store.on('update', this.update);
+ store.on('add', this.add, this);
+ store.on('update', this.update, this);
},
keys: {
@@ -100,7 +100,7 @@ Ext.define('Traccar.view.state.StateController', {
},
selectDevice: function(device) {
- this.deviceId = device.get('deviceId');
+ this.deviceId = device.get('id');
var found = Ext.getStore('LiveData').query('deviceId', this.deviceId);
if (found.getCount() > 0) {
this.updatePosition(found.first());