kopia lustrzana https://gitlab.com/gridtracker.org/gridtracker
a few of SD's roster tweaks
rodzic
87ea89e50e
commit
714b29afa4
|
@ -141,7 +141,7 @@ Number.prototype.toDHM = function ()
|
|||
|
||||
days = days ? days + "d " : "";
|
||||
hrs = hrs ? hrs + "h " : "";
|
||||
mnts = mnts ? mnts + "m " : "";
|
||||
mnts = mnts || seconds ? mnts + "m " : "";
|
||||
val = days + hrs + mnts;
|
||||
return val;
|
||||
};
|
||||
|
|
|
@ -302,8 +302,20 @@ function myLifeCompare(a, b)
|
|||
|
||||
function mySpotCompare(a, b)
|
||||
{
|
||||
var cutoff = timeNowSec() - window.opener.g_receptionSettings.viewHistoryTimeSec;
|
||||
|
||||
if (a.spot.when <= cutoff) return -1;
|
||||
if (b.spot.when <= cutoff) return 1;
|
||||
|
||||
var aSNR = Number(a.spot.snr);
|
||||
var bSNR = Number(b.spot.snr);
|
||||
|
||||
if (aSNR > bSNR) return 1;
|
||||
if (aSNR < bSNR) return -1;
|
||||
|
||||
if (a.callObj.spot.when > b.callObj.spot.when) return 1;
|
||||
if (a.callObj.spot.when < b.callObj.spot.when) return -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -201,7 +201,8 @@ function renderNormalRosterRow(callObj, showBands, showModes)
|
|||
(callObj.cnty
|
||||
? (callObj.qual
|
||||
? ""
|
||||
: "onClick='window.opener.lookupCallsign(\"" +
|
||||
: "title='ZIP Code matches multiple counties, click to do a full lookup' " +
|
||||
"onClick='window.opener.lookupCallsign(\"" +
|
||||
thisCall +
|
||||
"\",\"" +
|
||||
grid +
|
||||
|
@ -210,9 +211,9 @@ function renderNormalRosterRow(callObj, showBands, showModes)
|
|||
: "") +
|
||||
">" +
|
||||
(callObj.cnty
|
||||
? (callObj.qual ? "" : "~ ") +
|
||||
? (callObj.qual ? "" : "¿ ") +
|
||||
window.opener.g_cntyToCounty[callObj.cnty] +
|
||||
(callObj.qual ? "" : " ~")
|
||||
(callObj.qual ? "" : " ?")
|
||||
: "") +
|
||||
"</td>";
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue