diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-15 13:43:31 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-15 13:43:31 +1200 |
commit | 24ed72ab26fd31769e334b928316b038b4d8b647 (patch) | |
tree | db8e3b6bb4a5e9a5dd003bb6cc355ff6bceb9a11 /web/app/view/state/StateController.js | |
parent | d2139af877194952e3d49ca882188bcebbbd927e (diff) | |
download | trackermap-server-24ed72ab26fd31769e334b928316b038b4d8b647.tar.gz trackermap-server-24ed72ab26fd31769e334b928316b038b4d8b647.tar.bz2 trackermap-server-24ed72ab26fd31769e334b928316b038b4d8b647.zip |
More changes to store classes
Diffstat (limited to 'web/app/view/state/StateController.js')
-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 bc125e529..23ac72db3 100644 --- a/web/app/view/state/StateController.js +++ b/web/app/view/state/StateController.js @@ -29,7 +29,7 @@ Ext.define('Traccar.view.state.StateController', { }, init: function() { - var store = Ext.getStore('LiveData'); + var store = Ext.getStore('LatestPositions'); store.on('add', this.add, this); store.on('update', this.update, this); }, @@ -137,7 +137,7 @@ Ext.define('Traccar.view.state.StateController', { selectDevice: function(device) { this.deviceId = device.get('id'); - var found = Ext.getStore('LiveData').query('deviceId', this.deviceId); + var found = Ext.getStore('LatestPositions').query('deviceId', this.deviceId); if (found.getCount() > 0) { this.updatePosition(found.first()); } else { |