From 71f8cd7bdf580f48374fbb152bcbf710c54e6c85 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Wed, 12 Oct 2016 11:57:16 +0500 Subject: Autoscroll to selected on map device and position --- web/app/view/DevicesController.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'web/app/view/DevicesController.js') diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js index 0246324..bcdfc6f 100644 --- a/web/app/view/DevicesController.js +++ b/web/app/view/DevicesController.js @@ -32,8 +32,10 @@ Ext.define('Traccar.view.DevicesController', { listen: { controller: { '*': { - selectdevice: 'selectDevice', selectreport: 'selectReport' + }, + 'map': { + selectdevice: 'selectDevice' } }, store: { @@ -143,6 +145,7 @@ Ext.define('Traccar.view.DevicesController', { selectDevice: function (device, center) { this.getView().getSelectionModel().select([device], false, true); + this.getView().getView().focusRow(device); }, selectReport: function (position) { -- cgit v1.2.3