aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/DevicesController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-12-29 16:31:11 +0500
committerAbyss777 <abyss@fox5.ru>2016-12-29 16:31:11 +0500
commitd9be85d9928a9c511335a3a2eb231dcfd1fb1d5a (patch)
tree990756691ce721cc865918b983c20a96ce4c5561 /web/app/view/DevicesController.js
parent3362bc6315a7711b40649ee3a07fbfc8b0ff4ef8 (diff)
downloadetbsa-traccar-web-d9be85d9928a9c511335a3a2eb231dcfd1fb1d5a.tar.gz
etbsa-traccar-web-d9be85d9928a9c511335a3a2eb231dcfd1fb1d5a.tar.bz2
etbsa-traccar-web-d9be85d9928a9c511335a3a2eb231dcfd1fb1d5a.zip
Deselect markers
Diffstat (limited to 'web/app/view/DevicesController.js')
-rw-r--r--web/app/view/DevicesController.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js
index f09950b..20b90b3 100644
--- a/web/app/view/DevicesController.js
+++ b/web/app/view/DevicesController.js
@@ -32,7 +32,8 @@ Ext.define('Traccar.view.DevicesController', {
listen: {
controller: {
'*': {
- selectreport: 'selectReport'
+ selectreport: 'selectReport',
+ deselectfeature: 'deselectFeature'
},
'map': {
selectdevice: 'selectDevice'
@@ -143,11 +144,15 @@ Ext.define('Traccar.view.DevicesController', {
selectReport: function (position) {
if (position !== undefined) {
- this.getView().getSelectionModel().deselectAll();
+ this.deselectFeature();
}
},
onUpdateDevice: function (store, data) {
this.updateButtons(this.getView().getSelectionModel());
+ },
+
+ deselectFeature: function () {
+ this.getView().getSelectionModel().deselectAll();
}
});