aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/state
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-27 10:39:47 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-27 10:39:47 +1200
commitdeea5b703fd83e699d62600d93b3e28ac71188a1 (patch)
treee8d015777efdfe33f0bbd50b44d5b74324771c77 /web/app/view/state
parent2f8c3c0a31c332457997dfef0837d039074078c3 (diff)
downloadtrackermap-server-deea5b703fd83e699d62600d93b3e28ac71188a1.tar.gz
trackermap-server-deea5b703fd83e699d62600d93b3e28ac71188a1.tar.bz2
trackermap-server-deea5b703fd83e699d62600d93b3e28ac71188a1.zip
Fix few minor UI issues
Diffstat (limited to 'web/app/view/state')
-rw-r--r--web/app/view/state/StateController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/state/StateController.js b/web/app/view/state/StateController.js
index b6a6cc542..f87a89664 100644
--- a/web/app/view/state/StateController.js
+++ b/web/app/view/state/StateController.js
@@ -72,7 +72,6 @@ Ext.define('Traccar.view.state.StateController', {
updatePosition: function(position) {
var store = Ext.getStore('Parameters');
- store.removeAll();
for (var key in position.data) {
if (position.data.hasOwnProperty(key) && this.keys[key] !== undefined) {
@@ -102,6 +101,7 @@ Ext.define('Traccar.view.state.StateController', {
selectDevice: function(device) {
this.deviceId = device.get('id');
var found = Ext.getStore('LiveData').query('deviceId', this.deviceId);
+ Ext.getStore('Parameters').removeAll();
if (found.getCount() > 0) {
this.updatePosition(found.first());
}