From c59c5b76d859fad24b07e7f1999c937cb1d0660d Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sun, 17 Jan 2021 18:50:55 +0100 Subject: [PATCH] fix callsign highlight on map for mobile / portable calls --- htdocs/lib/MessagePanel.js | 2 +- htdocs/lib/MetaPanel.js | 2 +- htdocs/map.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/lib/MessagePanel.js b/htdocs/lib/MessagePanel.js index 597475b..dc8995e 100644 --- a/htdocs/lib/MessagePanel.js +++ b/htdocs/lib/MessagePanel.js @@ -186,7 +186,7 @@ PacketMessagePanel.prototype.pushMessage = function(msg) { 'style="' + stylesToString(styles) + '"' ].join(' '); if (msg.lat && msg.lon) { - link = '' + overlay + ''; + link = '' + overlay + ''; } else { link = '
' + overlay + '
' } diff --git a/htdocs/lib/MetaPanel.js b/htdocs/lib/MetaPanel.js index 849cb21..8a7c85c 100644 --- a/htdocs/lib/MetaPanel.js +++ b/htdocs/lib/MetaPanel.js @@ -162,7 +162,7 @@ YsfMetaPanel.prototype.setLocation = function(lat, lon, callsign) { this.hasLocation = hasLocation; this.callsign = callsign; var html = ''; if (hasLocation) { - html = ''; + html = ''; } this.el.find('.openwebrx-ysf-source .location').html(html); }; diff --git a/htdocs/map.js b/htdocs/map.js index fd3e740..3fdc94e 100644 --- a/htdocs/map.js +++ b/htdocs/map.js @@ -9,7 +9,7 @@ }); var expectedCallsign; - if (query.callsign) expectedCallsign = query.callsign; + if (query.callsign) expectedCallsign = decodeURIComponent(query.callsign); var expectedLocator; if (query.locator) expectedLocator = query.locator;