1
0
Fork 0

No link to qrz.com, if callsign is only a number (DMRId, Reflector, something)

main
Kim Huebel 4 years ago
parent 17828471a6
commit 3cc05b268a

@ -92,7 +92,7 @@ function getCallsign(logline) {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$")); name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
callsign = callsign.substring(0, callsign.indexOf("$")); callsign = callsign.substring(0, callsign.indexOf("$"));
} }
if (qrz == 1) { if (qrz == 1 && isNaN(callsign)) {
if (name != "") { 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>'; return '<div class=\"tooltip2\"><a target="_new" href="https://qrz.com/db/' + callsign + '">' + callsign + '</a><span class=\"tooltip2text\">Name:<br>' + name + '</span></div>';
} else { } else {
@ -285,7 +285,7 @@ function getCallsign(logline) {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$")); name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
callsign = callsign.substring(0, callsign.indexOf("$")); callsign = callsign.substring(0, callsign.indexOf("$"));
} }
if (qrz == 1) { if (qrz == 1 && isNaN(callsign)) {
if (name != "") { 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>'; return '<div class=\"tooltip2\"><a target="_new" href="https://qrz.com/db/' + callsign + '">' + callsign + '</a><span class=\"tooltip2text\">Name:<br>' + name + '</span></div>';
} else { } else {
@ -331,7 +331,7 @@ function getCurrentTXing() {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$")); name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
callsign = callsign.substring(0, callsign.indexOf("$")); callsign = callsign.substring(0, callsign.indexOf("$"));
} }
if (qrz == 1) { if (qrz == 1 && isNaN(callsign)) {
if (name != "") { 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>'; 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 { } else {
@ -359,7 +359,7 @@ function getCurrentTXing() {
name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$")); name = callsign.substring(callsign.indexOf("$") + 1, callsign.lastIndexOf("$"));
callsign = callsign.substring(0, callsign.indexOf("$")); callsign = callsign.substring(0, callsign.indexOf("$"));
} }
if (qrz == 1) { if (qrz == 1 && isNaN(callsign)) {
if (name != "") { 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>'; 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 { } else {

@ -1 +1 @@
var dashboard_version = "2021-02-03 22:06:20"; var dashboard_version = "2021-02-04 11:59:55";

Loading…
Cancel
Save