aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/DevicesController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-12 20:50:26 +1300
committerGitHub <noreply@github.com>2016-10-12 20:50:26 +1300
commit32cfba2f48b2ec73ed282af94bb793dde49b0a72 (patch)
tree403eb602662bd4274c3d49376b6972e9b637a5cd /web/app/view/DevicesController.js
parent56d37a27017a1e47ec858195d910b438377d47b9 (diff)
parent71f8cd7bdf580f48374fbb152bcbf710c54e6c85 (diff)
downloadtrackermap-web-32cfba2f48b2ec73ed282af94bb793dde49b0a72.tar.gz
trackermap-web-32cfba2f48b2ec73ed282af94bb793dde49b0a72.tar.bz2
trackermap-web-32cfba2f48b2ec73ed282af94bb793dde49b0a72.zip
Merge pull request #297 from Abyss777/scroll_to_row
Autoscroll to device and position selected on map
Diffstat (limited to 'web/app/view/DevicesController.js')
-rw-r--r--web/app/view/DevicesController.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js
index 02463241..bcdfc6f9 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) {