No link to qrz.com for callsigns in qrz_blacklist (config.js)
This commit is contained in:
parent
3cc05b268a
commit
071f8a3c83
3 changed files with 10 additions and 5 deletions
|
@ -25,3 +25,8 @@ var useClientTimezone = 1;
|
|||
// Show link to BrandMeister-LastHeard on TG if 1, else no link
|
||||
|
||||
var showBMTGLink = 1;
|
||||
|
||||
// Array of callsigns that should not be linked to qrz.com
|
||||
var qrz_blacklist = [
|
||||
"N0CALL",
|
||||
]
|
|
@ -92,7 +92,7 @@ function getCallsign(logline) {
|
|||
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
|
||||
callsign = callsign.substring(0, callsign.indexOf("$"));
|
||||
}
|
||||
if (qrz == 1 && isNaN(callsign)) {
|
||||
if (qrz == 1 && isNaN(callsign) && !qrz_blacklist.includes(callsign)) {
|
||||
if (name != "") {
|
||||
return '<div class=\"tooltip2\"><a target="_new" href="https://qrz.com/db/' + callsign + '">' + callsign + '</a><span class=\"tooltip2text\">Name:<br>' + name + '</span></div>';
|
||||
} else {
|
||||
|
@ -285,7 +285,7 @@ function getCallsign(logline) {
|
|||
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
|
||||
callsign = callsign.substring(0, callsign.indexOf("$"));
|
||||
}
|
||||
if (qrz == 1 && isNaN(callsign)) {
|
||||
if (qrz == 1 && isNaN(callsign) && !qrz_blacklist.includes(callsign)) {
|
||||
if (name != "") {
|
||||
return '<div class=\"tooltip2\"><a target="_new" href="https://qrz.com/db/' + callsign + '">' + callsign + '</a><span class=\"tooltip2text\">Name:<br>' + name + '</span></div>';
|
||||
} else {
|
||||
|
@ -331,7 +331,7 @@ function getCurrentTXing() {
|
|||
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
|
||||
callsign = callsign.substring(0, callsign.indexOf("$"));
|
||||
}
|
||||
if (qrz == 1 && isNaN(callsign)) {
|
||||
if (qrz == 1 && isNaN(callsign) && !qrz_blacklist.includes(callsign)) {
|
||||
if (name != "") {
|
||||
ts1[1] = '<div class=\"tooltip2\"><a target="_new" href="https://qrz.com/db/' + callsign + '">' + callsign + '</a><span class=\"tooltip2text\">Name:<br>' + name + '</span></div>';
|
||||
} else {
|
||||
|
@ -359,7 +359,7 @@ function getCurrentTXing() {
|
|||
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
|
||||
callsign = callsign.substring(0, callsign.indexOf("$"));
|
||||
}
|
||||
if (qrz == 1 && isNaN(callsign)) {
|
||||
if (qrz == 1 && isNaN(callsign) && !qrz_blacklist.includes(callsign)) {
|
||||
if (name != "") {
|
||||
ts2[1] = '<div class=\"tooltip2\"><a target="_new" href="https://qrz.com/db/' + callsign + '">' + callsign + '</a><span class=\"tooltip2text\">Name:<br>' + name + '</span></div>';
|
||||
} else {
|
||||
|
|
|
@ -1 +1 @@
|
|||
var dashboard_version = "2021-02-04 11:59:55";
|
||||
var dashboard_version = "2021-02-04 12:07:19";
|
||||
|
|
Loading…
Reference in a new issue