aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/StateController.js
diff options
context:
space:
mode:
authorEvgeny S Maksimov <admin@vragam.net>2019-02-26 12:21:51 +0300
committerEvgeny S Maksimov <admin@vragam.net>2019-02-26 12:21:51 +0300
commitaf41d034854a8d267463759a72fe1f610c9d297d (patch)
treea102b1dd99936c161fa01673fee09bb56c71cd8d /web/app/view/StateController.js
parent9a14f9599659c587a646ee322db5b65fa65d801d (diff)
downloadtrackermap-web-af41d034854a8d267463759a72fe1f610c9d297d.tar.gz
trackermap-web-af41d034854a8d267463759a72fe1f610c9d297d.tar.bz2
trackermap-web-af41d034854a8d267463759a72fe1f610c9d297d.zip
Implementation fixes
Diffstat (limited to 'web/app/view/StateController.js')
-rw-r--r--web/app/view/StateController.js14
1 files changed, 3 insertions, 11 deletions
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js
index 58478d28..1ab1aa2f 100644
--- a/web/app/view/StateController.js
+++ b/web/app/view/StateController.js
@@ -32,8 +32,8 @@ Ext.define('Traccar.view.StateController', {
controller: {
'*': {
selectdevice: 'selectDevice',
- selectreport: 'selectReport',
- selectevent: 'selectEvent',
+ selectreport: 'selectPosition',
+ selectevent: 'selectPosition',
deselectfeature: 'deselectFeature'
}
},
@@ -168,15 +168,7 @@ Ext.define('Traccar.view.StateController', {
}
},
- selectReport: function (position) {
- if (position instanceof Traccar.model.Position) {
- this.deviceId = null;
- this.position = position;
- this.updatePosition();
- }
- },
-
- selectEvent: function (position) {
+ selectPosition: function (position) {
if (position instanceof Traccar.model.Position) {
this.deviceId = null;
this.position = position;