diff options
author | Gábor Somogyi <gabor.g.somogyi@gmail.com> | 2016-04-22 01:04:57 +0200 |
---|---|---|
committer | Gábor Somogyi <gabor.g.somogyi@gmail.com> | 2016-04-22 01:04:57 +0200 |
commit | 1e816a4665701b7c0a07eaa3f8343a1234166876 (patch) | |
tree | 7d2fec65cf160ee574ae95983501f9a16d7f7123 /web/app/view/DevicesController.js | |
parent | a427f3f6644a62366e4c2ed6c69f2f4479b2bed5 (diff) | |
download | trackermap-server-1e816a4665701b7c0a07eaa3f8343a1234166876.tar.gz trackermap-server-1e816a4665701b7c0a07eaa3f8343a1234166876.tar.bz2 trackermap-server-1e816a4665701b7c0a07eaa3f8343a1234166876.zip |
Follow button now jump immediately to device
Diffstat (limited to 'web/app/view/DevicesController.js')
-rw-r--r-- | web/app/view/DevicesController.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js index e9a075ffc..135183f97 100644 --- a/web/app/view/DevicesController.js +++ b/web/app/view/DevicesController.js @@ -89,6 +89,13 @@ Ext.define('Traccar.view.DevicesController', { dialog.show(); }, + onFollowClick: function (button, pressed) { + if (pressed) { + var device = this.getView().getSelectionModel().getSelection()[0]; + this.fireEvent('selectDevice', device, true); + } + }, + onSelectionChange: function (selected) { var empty = selected.getCount() === 0; this.lookupReference('toolbarEditButton').setDisabled(empty); |