From a7bfd5431b73b5d634b769e64483e81815364bca Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Fri, 28 Jul 2017 08:58:54 +0500 Subject: Do not show geofenceId if it is unknown --- web/app/view/map/MapMarkerController.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'web/app/view/map') diff --git a/web/app/view/map/MapMarkerController.js b/web/app/view/map/MapMarkerController.js index 2f1d91e1..df4029d2 100644 --- a/web/app/view/map/MapMarkerController.js +++ b/web/app/view/map/MapMarkerController.js @@ -495,11 +495,12 @@ Ext.define('Traccar.view.map.MapMarkerController', { }, selectEvent: function (position) { + var marker; this.fireEvent('deselectfeature'); if (position) { - var maker = this.addReportMarker(position); - maker.set('event', true); - this.selectMarker(maker, true); + marker = this.addReportMarker(position); + marker.set('event', true); + this.selectMarker(marker, true); } else if (this.selectedMarker && this.selectedMarker.get('event')) { this.selectMarker(null, false); } -- cgit v1.2.3