aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/StateController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-03-27 10:05:33 +0500
committerAbyss777 <abyss@fox5.ru>2017-03-27 10:05:33 +0500
commit1602c0f76cfbc273239280b65dc528e231350908 (patch)
tree7e4411cc8cfed14bb376fe1e1155fe395f0e3199 /web/app/view/StateController.js
parentc4e1f652ca5ad459c2d29e1e3c92dc251c5adcb8 (diff)
downloadtrackermap-web-1602c0f76cfbc273239280b65dc528e231350908.tar.gz
trackermap-web-1602c0f76cfbc273239280b65dc528e231350908.tar.bz2
trackermap-web-1602c0f76cfbc273239280b65dc528e231350908.zip
Fix deselecting
Diffstat (limited to 'web/app/view/StateController.js')
-rw-r--r--web/app/view/StateController.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js
index 08331867..661bc961 100644
--- a/web/app/view/StateController.js
+++ b/web/app/view/StateController.js
@@ -167,8 +167,10 @@ Ext.define('Traccar.view.StateController', {
},
clearReport: function (store) {
- this.position = null;
- Ext.getStore('Attributes').removeAll();
+ if (!this.deviceId) {
+ this.position = null;
+ Ext.getStore('Attributes').removeAll();
+ }
},
onSelectionChange: function (selected, records) {