diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-27 12:34:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-27 12:34:24 -0800 |
commit | ecde88443393ac77b133d2682fef3885f859818e (patch) | |
tree | 9edb97a56389614132a645b03220ecdc8b5fa6b4 /web/app/view/StateController.js | |
parent | 05b555c6c8539f35c1caf3b1f4e252146f1e7d38 (diff) | |
parent | 6dd4cb71561be3d41da3d10b810fb078f10e79b3 (diff) | |
download | trackermap-web-ecde88443393ac77b133d2682fef3885f859818e.tar.gz trackermap-web-ecde88443393ac77b133d2682fef3885f859818e.tar.bz2 trackermap-web-ecde88443393ac77b133d2682fef3885f859818e.zip |
Merge pull request #730 from iEvgeny/event2pos
Add connection between event and its state
Diffstat (limited to 'web/app/view/StateController.js')
-rw-r--r-- | web/app/view/StateController.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js index 6363fc9c..1ab1aa2f 100644 --- a/web/app/view/StateController.js +++ b/web/app/view/StateController.js @@ -32,7 +32,8 @@ Ext.define('Traccar.view.StateController', { controller: { '*': { selectdevice: 'selectDevice', - selectreport: 'selectReport', + selectreport: 'selectPosition', + selectevent: 'selectPosition', deselectfeature: 'deselectFeature' } }, @@ -167,7 +168,7 @@ Ext.define('Traccar.view.StateController', { } }, - selectReport: function (position) { + selectPosition: function (position) { if (position instanceof Traccar.model.Position) { this.deviceId = null; this.position = position; |