From d9be85d9928a9c511335a3a2eb231dcfd1fb1d5a Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Thu, 29 Dec 2016 16:31:11 +0500 Subject: Deselect markers --- web/app/view/StateController.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'web/app/view/StateController.js') diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js index 3835697..bef54d2 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(); -- cgit v1.2.3