diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-30 19:50:14 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-30 19:50:14 +1300 |
commit | f5030b90ecde5a50e05cd81ed8d08b6387b8dead (patch) | |
tree | ba77288ff1d7f9750e6583139dc62b823a4cd5c6 /web/app/view/DevicesController.js | |
parent | 3362bc6315a7711b40649ee3a07fbfc8b0ff4ef8 (diff) | |
parent | c6ba6502a41bfcb894245bee935006b3afb37d17 (diff) | |
download | trackermap-web-f5030b90ecde5a50e05cd81ed8d08b6387b8dead.tar.gz trackermap-web-f5030b90ecde5a50e05cd81ed8d08b6387b8dead.tar.bz2 trackermap-web-f5030b90ecde5a50e05cd81ed8d08b6387b8dead.zip |
Merge pull request #377 from Abyss777/selecting_improvement
Bring markers to front and deselect on empty space click
Diffstat (limited to 'web/app/view/DevicesController.js')
-rw-r--r-- | web/app/view/DevicesController.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js index f09950b3..20b90b3b 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(); } }); |