diff options
author | Abyss777 <abyss@fox5.ru> | 2016-10-07 13:45:58 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-10-07 13:45:58 +0500 |
commit | e042dbc8f28faa005019744abf0d8c80340902bf (patch) | |
tree | 01b214a58aad95653abcd143afdf2b7bf2f0d7a5 /web/app/view/StateController.js | |
parent | a47bf8f3eb6807c4fc9094f6e1e6b62185354b2c (diff) | |
download | trackermap-web-e042dbc8f28faa005019744abf0d8c80340902bf.tar.gz trackermap-web-e042dbc8f28faa005019744abf0d8c80340902bf.tar.bz2 trackermap-web-e042dbc8f28faa005019744abf0d8c80340902bf.zip |
- Draw trip route on click
- Add some object class checks
- Add missed imports
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) { |