diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-08 01:03:16 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-08 01:03:16 +1300 |
commit | 4b5f8366b4f5a41591dd1b4627a97c9211c02fb8 (patch) | |
tree | 9bcb019563d7bf511e4186b46f8b11f810b68e41 /web/app/view/StateController.js | |
parent | a47bf8f3eb6807c4fc9094f6e1e6b62185354b2c (diff) | |
parent | 55a2a72f1260e4a1ca394c31498762d2fb32ec1c (diff) | |
download | trackermap-web-4b5f8366b4f5a41591dd1b4627a97c9211c02fb8.tar.gz trackermap-web-4b5f8366b4f5a41591dd1b4627a97c9211c02fb8.tar.bz2 trackermap-web-4b5f8366b4f5a41591dd1b4627a97c9211c02fb8.zip |
Merge pull request #292 from Abyss777/trip_draw
Draw trip route on click
Diffstat (limited to 'web/app/view/StateController.js')
-rw-r--r-- | web/app/view/StateController.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js index 8a194940..b0188081 100644 --- a/web/app/view/StateController.js +++ b/web/app/view/StateController.js @@ -23,6 +23,7 @@ Ext.define('Traccar.view.StateController', { 'Traccar.AttributeFormatter', 'Traccar.model.Attribute', 'Traccar.model.AttributeAlias', + 'Traccar.model.Position', 'Traccar.view.AttributeAliasDialog' ], @@ -149,9 +150,11 @@ Ext.define('Traccar.view.StateController', { }, selectReport: function (position) { - this.deviceId = null; - this.position = position; - this.updatePosition(); + if (position instanceof Traccar.model.Position) { + this.deviceId = null; + this.position = position; + this.updatePosition(); + } }, clearReport: function (store) { |