fix callsign highlight on map for mobile / portable calls
This commit is contained in:
parent
e917b920c8
commit
c59c5b76d8
@ -186,7 +186,7 @@ PacketMessagePanel.prototype.pushMessage = function(msg) {
|
|||||||
'style="' + stylesToString(styles) + '"'
|
'style="' + stylesToString(styles) + '"'
|
||||||
].join(' ');
|
].join(' ');
|
||||||
if (msg.lat && msg.lon) {
|
if (msg.lat && msg.lon) {
|
||||||
link = '<a ' + attrs + ' href="map?callsign=' + source + '" target="openwebrx-map">' + overlay + '</a>';
|
link = '<a ' + attrs + ' href="map?callsign=' + encodeURIComponent(source) + '" target="openwebrx-map">' + overlay + '</a>';
|
||||||
} else {
|
} else {
|
||||||
link = '<div ' + attrs + '>' + overlay + '</div>'
|
link = '<div ' + attrs + '>' + overlay + '</div>'
|
||||||
}
|
}
|
||||||
|
@ -162,7 +162,7 @@ YsfMetaPanel.prototype.setLocation = function(lat, lon, callsign) {
|
|||||||
this.hasLocation = hasLocation; this.callsign = callsign;
|
this.hasLocation = hasLocation; this.callsign = callsign;
|
||||||
var html = '';
|
var html = '';
|
||||||
if (hasLocation) {
|
if (hasLocation) {
|
||||||
html = '<a class="openwebrx-maps-pin" href="map?callsign=' + callsign + '" target="_blank"></a>';
|
html = '<a class="openwebrx-maps-pin" href="map?callsign=' + encodeURIComponent(callsign) + '" target="_blank"></a>';
|
||||||
}
|
}
|
||||||
this.el.find('.openwebrx-ysf-source .location').html(html);
|
this.el.find('.openwebrx-ysf-source .location').html(html);
|
||||||
};
|
};
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
var expectedCallsign;
|
var expectedCallsign;
|
||||||
if (query.callsign) expectedCallsign = query.callsign;
|
if (query.callsign) expectedCallsign = decodeURIComponent(query.callsign);
|
||||||
var expectedLocator;
|
var expectedLocator;
|
||||||
if (query.locator) expectedLocator = query.locator;
|
if (query.locator) expectedLocator = query.locator;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user