diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-27 12:34:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-27 12:34:24 -0800 |
commit | ecde88443393ac77b133d2682fef3885f859818e (patch) | |
tree | 9edb97a56389614132a645b03220ecdc8b5fa6b4 /web/app/view/EventsController.js | |
parent | 05b555c6c8539f35c1caf3b1f4e252146f1e7d38 (diff) | |
parent | 6dd4cb71561be3d41da3d10b810fb078f10e79b3 (diff) | |
download | trackermap-web-ecde88443393ac77b133d2682fef3885f859818e.tar.gz trackermap-web-ecde88443393ac77b133d2682fef3885f859818e.tar.bz2 trackermap-web-ecde88443393ac77b133d2682fef3885f859818e.zip |
Merge pull request #730 from iEvgeny/event2pos
Add connection between event and its state
Diffstat (limited to 'web/app/view/EventsController.js')
-rw-r--r-- | web/app/view/EventsController.js | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/web/app/view/EventsController.js b/web/app/view/EventsController.js index 8eb4363f..e11b4ff6 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) { + this.deselectFeature(); + } + }, + + deselectFeature: function () { this.getView().getSelectionModel().deselectAll(); }, |