aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/MapMarkerController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-12-01 17:45:19 +0500
committerAbyss777 <abyss@fox5.ru>2016-12-01 17:45:19 +0500
commit5433c47155452951b8c75587725bf6c92f8ff11d (patch)
tree839945cf8cdd07c029564b885fae7d408e83e491 /web/app/view/MapMarkerController.js
parent42574b6700384bd8a45d3410c4f8da644dad112e (diff)
downloadtrackermap-web-5433c47155452951b8c75587725bf6c92f8ff11d.tar.gz
trackermap-web-5433c47155452951b8c75587725bf6c92f8ff11d.tar.bz2
trackermap-web-5433c47155452951b8c75587725bf6c92f8ff11d.zip
Handle 'showsingleevent' only in one place
Diffstat (limited to 'web/app/view/MapMarkerController.js')
-rw-r--r--web/app/view/MapMarkerController.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/web/app/view/MapMarkerController.js b/web/app/view/MapMarkerController.js
index 596cffb3..a526d912 100644
--- a/web/app/view/MapMarkerController.js
+++ b/web/app/view/MapMarkerController.js
@@ -31,8 +31,7 @@ Ext.define('Traccar.view.MapMarkerController', {
controller: {
'*': {
selectdevice: 'selectDevice',
- selectreport: 'selectReport',
- showsingleevent: 'showSingleEvent'
+ selectreport: 'selectReport'
}
},
store: {
@@ -66,10 +65,6 @@ Ext.define('Traccar.view.MapMarkerController', {
this.liveRouteLength = Traccar.app.getAttributePreference('web.liveRouteLength', 10);
},
- showSingleEvent: function () {
- this.singleEvent = true;
- },
-
getDeviceColor: function (device) {
switch (device.get('status')) {
case 'online':
@@ -253,10 +248,6 @@ Ext.define('Traccar.view.MapMarkerController', {
} else if (geometry) {
this.getView().getMapView().fit(geometry, this.getView().getMap().getSize());
}
- if (this.singleEvent) {
- this.singleEvent = false;
- this.fireEvent('selectreport', data[0], false);
- }
},
clearReport: function () {