diff options
author | Abyss777 <abyss@fox5.ru> | 2016-12-29 16:31:11 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-12-29 16:31:11 +0500 |
commit | d9be85d9928a9c511335a3a2eb231dcfd1fb1d5a (patch) | |
tree | 990756691ce721cc865918b983c20a96ce4c5561 /web/app/view/StateController.js | |
parent | 3362bc6315a7711b40649ee3a07fbfc8b0ff4ef8 (diff) | |
download | trackermap-web-d9be85d9928a9c511335a3a2eb231dcfd1fb1d5a.tar.gz trackermap-web-d9be85d9928a9c511335a3a2eb231dcfd1fb1d5a.tar.bz2 trackermap-web-d9be85d9928a9c511335a3a2eb231dcfd1fb1d5a.zip |
Deselect markers
Diffstat (limited to 'web/app/view/StateController.js')
-rw-r--r-- | web/app/view/StateController.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js index 38356979..bef54d27 100644 --- a/web/app/view/StateController.js +++ b/web/app/view/StateController.js @@ -34,7 +34,8 @@ Ext.define('Traccar.view.StateController', { '*': { selectdevice: 'selectDevice', selectreport: 'selectReport', - updatealiases: 'updateAliases' + updatealiases: 'updateAliases', + deselectfeature: 'deselectFeature' } }, store: { @@ -157,6 +158,12 @@ Ext.define('Traccar.view.StateController', { } }, + deselectFeature: function () { + this.deviceId = null; + this.position = null; + Ext.getStore('Attributes').removeAll(); + }, + clearReport: function (store) { this.position = null; Ext.getStore('Attributes').removeAll(); |