aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/StateController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-27 12:34:24 -0800
committerGitHub <noreply@github.com>2019-02-27 12:34:24 -0800
commitecde88443393ac77b133d2682fef3885f859818e (patch)
tree9edb97a56389614132a645b03220ecdc8b5fa6b4 /web/app/view/StateController.js
parent05b555c6c8539f35c1caf3b1f4e252146f1e7d38 (diff)
parent6dd4cb71561be3d41da3d10b810fb078f10e79b3 (diff)
downloadtrackermap-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.js5
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;