diff --git a/html/js/functions.js b/html/js/functions.js index 882c09b..35ad070 100644 --- a/html/js/functions.js +++ b/html/js/functions.js @@ -220,7 +220,9 @@ function resolveTarget(mode, timeslot, target) { default: break; } - if (retval.length > 0) { + //if (retval.length > 0) { + if (retval != null && retval != "") { + logIt("Retval: " + retval); if (retval[0][4] != "") { return ''+retval[0][3]+''; } else { @@ -274,6 +276,7 @@ function getTarget(logline) { } } else { retval = '
' + resolveTarget(getMode(logline), getTimeslot(getMode(logline)), target) + 'Origin:
' + target + '
'; + if (getMode(logline) == "YSF" && logline.indexOf(" at ") > 0) { via = logline.substr(logline.indexOf(" at ") + 4); if (via.indexOf("$") > 0) { @@ -696,22 +699,32 @@ function getLastHeard(document, event) { logIt("TS2: " + ts2TXing + "|" + ts2timestamp); getCurrentTXing(); if (line.indexOf("network watchdog") < 0 ) { - ts2tmp = []; + ts1tmp = []; + ts2tmp = []; + if (ts1TXing != null) { + matchstring = ""; + ts1tmp = ts1TXing.split(";"); + } if (ts2TXing != null) { - matchstring = ""; - ts2tmp = ts2TXing.split(";"); - } + matchstring = ""; + ts2tmp = ts2TXing.split(";"); + } var rowIndexes = [], timestamp = getTimestamp(line), mode = getMode(line), callsign = getCallsign(line), - target = ts2tmp[2], + target = "", source = getSource(line), duration = getDuration(line), loss = getLoss(line), ber = getBER(line), addToQSO = getAddToQSO(line); + if (getMode(line) == "DMR Slot 1" ) { + target = ts1tmp[2]; + } else { + target = ts2tmp[2]; + } if (txing) { duration = "TXing"; loss = ""; diff --git a/html/js/version.js b/html/js/version.js index e147238..391fb8f 100644 --- a/html/js/version.js +++ b/html/js/version.js @@ -1 +1 @@ -var dashboard_version = "2021-04-26 21:09:52"; +var dashboard_version = "2021-04-28 18:39:52";