aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/EventsController.js
diff options
context:
space:
mode:
authorEvgeny S Maksimov <admin@vragam.net>2019-02-26 12:21:51 +0300
committerEvgeny S Maksimov <admin@vragam.net>2019-02-26 12:21:51 +0300
commitaf41d034854a8d267463759a72fe1f610c9d297d (patch)
treea102b1dd99936c161fa01673fee09bb56c71cd8d /web/app/view/EventsController.js
parent9a14f9599659c587a646ee322db5b65fa65d801d (diff)
downloadtrackermap-web-af41d034854a8d267463759a72fe1f610c9d297d.tar.gz
trackermap-web-af41d034854a8d267463759a72fe1f610c9d297d.tar.bz2
trackermap-web-af41d034854a8d267463759a72fe1f610c9d297d.zip
Implementation fixes
Diffstat (limited to 'web/app/view/EventsController.js')
-rw-r--r--web/app/view/EventsController.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/web/app/view/EventsController.js b/web/app/view/EventsController.js
index 8eb4363f..9bce2bf4 100644
--- a/web/app/view/EventsController.js
+++ b/web/app/view/EventsController.js
@@ -24,7 +24,11 @@ Ext.define('Traccar.view.EventsController', {
listen: {
controller: {
'*': {
- deselectevent: 'deselectEvent'
+ selectdevice: 'deselectEvent',
+ selectreport: 'deselectEvent',
+ },
+ 'map': {
+ deselectfeature: 'deselectFeature'
}
},
store: {
@@ -79,7 +83,14 @@ Ext.define('Traccar.view.EventsController', {
Traccar.app.showEvents(false);
},
- deselectEvent: function () {
+
+ deselectEvent: function (object) {
+ if (object !== undefined) {
+ this.deselectFeature();
+ }
+ },
+
+ deselectFeature: function () {
this.getView().getSelectionModel().deselectAll();
},