mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-27 01:24:16 +00:00
Fix (tnx fer hint Andreas)
This commit is contained in:
@@ -29,121 +29,121 @@ function updateRow(qso) {
|
||||
let row = $('#qsoID-' + qso.qsoID);
|
||||
let cells = row.find('td');
|
||||
let c = 1;
|
||||
if (user_options.datetime.show || 'true' == "true"){
|
||||
if ((user_options.datetime.show ?? 'true') == "true"){
|
||||
cells.eq(c++).text(qso.qsoDateTime);
|
||||
}
|
||||
if (user_options.de.show || 'true' == "true"){
|
||||
if ((user_options.de.show ?? 'true') == "true"){
|
||||
cells.eq(c++).text(qso.de);
|
||||
}
|
||||
if (user_options.dx.show || 'true' == "true"){
|
||||
if ((user_options.dx.show ?? 'true') == "true"){
|
||||
cells.eq(c++).html('<span class="qso_call"><a id="edit_qso" href="javascript:displayQso('+qso.qsoID+')"><span id="dx">'+qso.dx.replaceAll('0', 'Ø')+'</span></a><span class="qso_icons">' + (qso.callsign == '' ? '' : ' <a href="https://lotw.arrl.org/lotwuser/act?act='+qso.callsign+'" target="_blank"><small id="lotw_info" class="badge bg-success'+qso.lotw_hint+'" data-bs-toggle="tooltip" title="LoTW User. Last upload was ' + qso.lastupload + '">L</small></a>') + ' <a target="_blank" href="https://www.qrz.com/db/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/qrz.png" alt="Lookup ' + qso.dx.replaceAll('0', 'Ø') + ' on QRZ.com"></a> <a target="_blank" href="https://www.hamqth.com/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/hamqth.png" alt="Lookup ' + qso.dx.replaceAll('0', 'Ø') + ' on HamQTH"></a> <a target="_blank" href="https://clublog.org/logsearch.php?log='+qso.dx+'&call='+qso.de+'"><img width="16" height="16" src="'+base_url+'images/icons/clublog.png" alt="Clublog Log Search"></a></span></span>');
|
||||
}
|
||||
if (user_options.mode.show || 'true' == "true"){
|
||||
if ((user_options.mode.show ?? 'true') == "true"){
|
||||
cells.eq(c++).text(qso.mode);
|
||||
}
|
||||
if (user_options.rsts.show || 'true' == "true"){
|
||||
if ((user_options.rsts.show ?? 'true') == "true"){
|
||||
cells.eq(c++).html(qso.rstS);
|
||||
}
|
||||
if (user_options.rstr.show || 'true' == "true"){
|
||||
if ((user_options.rstr.show ?? 'true') == "true"){
|
||||
cells.eq(c++).html(qso.rstR);
|
||||
}
|
||||
if (user_options.band.show || 'true' == "true"){
|
||||
if ((user_options.band.show ?? 'true') == "true"){
|
||||
cells.eq(c++).text(qso.band);
|
||||
}
|
||||
if ( (user_options.gridsquare) && (user_options.gridsquare.show || 'true' == "true")){
|
||||
if ( (user_options.gridsquare) && ((user_options.gridsquare.show ?? 'true') == "true")){
|
||||
cells.eq(c++).html(qso.gridsquare);
|
||||
}
|
||||
if (user_options.name.show || 'true' == "true"){
|
||||
if ((user_options.name.show ?? 'true') == "true"){
|
||||
cells.eq(c++).text(qso.name);
|
||||
}
|
||||
if (user_options.qslvia.show || 'true' == "true"){
|
||||
if ((user_options.qslvia.show ?? 'true') == "true"){
|
||||
cells.eq(c++).text(qso.qslVia);
|
||||
}
|
||||
if (user_options.clublog.show || 'true' == "true"){
|
||||
if ((user_options.clublog.show ?? 'true') == "true"){
|
||||
cells.eq(c++).html(qso.clublog);
|
||||
}
|
||||
if (user_options.qsl.show || 'true' == "true"){
|
||||
if ((user_options.qsl.show ?? 'true') == "true"){
|
||||
cells.eq(c++).html(qso.qsl);
|
||||
}
|
||||
if ($(".eqslconfirmation")[0] && user_options.eqsl.show || 'true' == "true"){
|
||||
if ($(".eqslconfirmation")[0] && ((user_options.eqsl.show ?? 'true') == "true")){
|
||||
cells.eq(c++).html(qso.eqsl);
|
||||
}
|
||||
if ($(".lotwconfirmation")[0] && user_options.lotw.show || 'true' == "true"){
|
||||
if ($(".lotwconfirmation")[0] && ((user_options.lotw.show ?? 'true') == "true")){
|
||||
cells.eq(c++).html(qso.lotw);
|
||||
}
|
||||
if (user_options.qrz.show || 'true' == "true"){
|
||||
if ((user_options.qrz.show ?? 'true') == "true"){
|
||||
cells.eq(c++).html(qso.qrz);
|
||||
}
|
||||
if (user_options.qslmsgs.show || 'true' == "true"){
|
||||
if ((user_options.qslmsgs.show ?? 'true') == "true"){
|
||||
cells.eq(c++).text(qso.qslMessage);
|
||||
}
|
||||
if (user_options.qslmsgr.show || 'true' == "true"){
|
||||
if ((user_options.qslmsgr.show ?? 'true') == "true"){
|
||||
cells.eq(c++).text(qso.qslMessageR);
|
||||
}
|
||||
if (user_options.dxcc.show || 'true' == "true"){
|
||||
if ((user_options.dxcc.show ?? 'true') == "true"){
|
||||
cells.eq(c++).html(qso.dxcc);
|
||||
}
|
||||
if (user_options.state.show || 'true' == "true"){
|
||||
if ((user_options.state.show ?? 'true') == "true"){
|
||||
cells.eq(c++).html(qso.state);
|
||||
}
|
||||
if (user_options.cqzone.show || 'true' == "true"){
|
||||
if ((user_options.cqzone.show ?? 'true') == "true"){
|
||||
cells.eq(c++).html(qso.cqzone);
|
||||
}
|
||||
if (user_options.ituzone.show || 'true' == "true"){
|
||||
if ((user_options.ituzone.show ?? 'true') == "true"){
|
||||
cells.eq(c++).html(qso.ituzone);
|
||||
}
|
||||
if (user_options.iota.show || 'true' == "true"){
|
||||
if ((user_options.iota.show ?? 'true') == "true"){
|
||||
cells.eq(c++).html(qso.iota);
|
||||
}
|
||||
if (user_options.pota.show || 'true' == "true"){
|
||||
if ((user_options.pota.show ?? 'true') == "true"){
|
||||
cells.eq(c++).html(qso.pota);
|
||||
}
|
||||
if ( (user_options.sota) && (user_options.sota.show || 'true' == "true")){
|
||||
if ((user_options.sota) && ((user_options.sota.show ?? 'true') == "true")){
|
||||
cells.eq(c++).html(qso.sota);
|
||||
}
|
||||
if ( (user_options.dok) && (user_options.dok.show || 'true' == "true")){
|
||||
if ((user_options.dok) && ((user_options.dok.show ?? 'true') == "true")){
|
||||
cells.eq(c++).html(qso.dok);
|
||||
}
|
||||
if ( (user_options.wwff) && (user_options.wwff.show || 'true' == "true")){
|
||||
if ((user_options.wwff) && ((user_options.wwff.show ?? 'true') == "true")){
|
||||
cells.eq(c++).html(qso.wwff);
|
||||
}
|
||||
if ( (user_options.sig) && (user_options.sig.show || 'true' == "true")){
|
||||
if ((user_options.sig) && ((user_options.sig.show ?? 'true') == "true")){
|
||||
cells.eq(c++).html(qso.sig);
|
||||
}
|
||||
if ( (user_options.region) && (user_options.region.show || 'true' == "true")){
|
||||
if ((user_options.region) && ((user_options.region.show ?? 'true') == "true")){
|
||||
cells.eq(c++).html(qso.region);
|
||||
}
|
||||
if ( (user_options.operator) && (user_options.operator.show || 'true' == "true")){
|
||||
if ((user_options.operator) && ((user_options.operator.show ?? 'true') == "true")){
|
||||
cells.eq(c++).html(qso.operator);
|
||||
}
|
||||
if ( (user_options.comment) && (user_options.comment.show || 'true' == "true")){
|
||||
if ((user_options.comment) && ((user_options.comment.show ?? 'true') == "true")){
|
||||
cells.eq(c++).html(qso.comment);
|
||||
}
|
||||
if ( (user_options.propagation) && (user_options.propagation.show || 'true' == "true")){
|
||||
if ((user_options.propagation) && ((user_options.propagation.show ?? 'true') == "true")){
|
||||
cells.eq(c++).html(qso.propagation);
|
||||
}
|
||||
if ( (user_options.contest) && (user_options.contest.show || 'true' == "true")){
|
||||
if ((user_options.contest) && ((user_options.contest.show ?? 'true') == "true")){
|
||||
cells.eq(c++).html(qso.contest);
|
||||
}
|
||||
if (user_options.myrefs.show || 'true' == "true"){
|
||||
if ((user_options.myrefs.show ?? 'true') == "true"){
|
||||
cells.eq(c++).text(qso.deRefs);
|
||||
}
|
||||
if (user_options.continent.show || 'true' == "true"){
|
||||
if ((user_options.continent.show ?? 'true') == "true"){
|
||||
cells.eq(c++).html(qso.continent);
|
||||
}
|
||||
if (user_options.distance.show || 'true' == "true"){
|
||||
if ((user_options.distance.show ?? 'true') == "true"){
|
||||
cells.eq(c++).text(qso.distance);
|
||||
}
|
||||
if (user_options.antennaazimuth.show || 'true' == "true"){
|
||||
if ((user_options.antennaazimuth.show ?? 'true') == "true"){
|
||||
cells.eq(c++).text(qso.antennaazimuth);
|
||||
}
|
||||
if (user_options.antennaelevation.show || 'true' == "true"){
|
||||
if ((user_options.antennaelevation.show ?? 'true') == "true"){
|
||||
cells.eq(c++).text(qso.antennaelevation);
|
||||
}
|
||||
if (user_options.profilename.show || 'true' == "true"){
|
||||
if ((user_options.profilename.show ?? 'true') == "true"){
|
||||
cells.eq(c++).text(qso.profilename);
|
||||
}
|
||||
if (user_options.stationpower.show || 'true' == "true"){
|
||||
if ((user_options.stationpower.show ?? 'true') == "true"){
|
||||
cells.eq(c++).text(qso.stationpower);
|
||||
}
|
||||
|
||||
@@ -207,137 +207,137 @@ function loadQSOTable(rows) {
|
||||
|
||||
var data = [];
|
||||
data.push('<div class="form-check"><input class="form-check-input" type="checkbox" /></div>');
|
||||
if (user_options.datetime.show || 'true' == "true"){
|
||||
if ((user_options.datetime.show ?? 'true') == "true"){
|
||||
if (qso.datetime === '') {
|
||||
data.push('<span class="bg-danger">Missing date</span>');
|
||||
} else {
|
||||
data.push(qso.qsoDateTime);
|
||||
}
|
||||
}
|
||||
if (user_options.de.show || 'true' == "true"){
|
||||
if ((user_options.de.show ?? 'true') == "true"){
|
||||
data.push(qso.de.replaceAll('0', 'Ø'));
|
||||
}
|
||||
if (user_options.dx.show || 'true' == "true"){
|
||||
if ((user_options.dx.show ?? 'true') == "true"){
|
||||
if (qso.dx === '') {
|
||||
data.push('<span class="bg-danger">Missing callsign</span>');
|
||||
} else {
|
||||
data.push('<span class="qso_call"><a id="edit_qso" href="javascript:displayQso('+qso.qsoID+')"><span id="dx">'+qso.dx.replaceAll('0', 'Ø')+'</span></a><span class="qso_icons">' + (qso.callsign == '' ? '' : ' <a href="https://lotw.arrl.org/lotwuser/act?act='+qso.callsign+'" target="_blank"><small id="lotw_info" class="badge bg-success'+qso.lotw_hint+'" data-bs-toggle="tooltip" title="LoTW User. Last upload was ' + qso.lastupload + ' ">L</small></a>') + ' <a target="_blank" href="https://www.qrz.com/db/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/qrz.png" alt="Lookup ' + qso.dx.replaceAll('0', 'Ø') + ' on QRZ.com"></a> <a target="_blank" href="https://www.hamqth.com/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/hamqth.png" alt="Lookup ' + qso.dx.replaceAll('0', 'Ø') + ' on HamQTH"></a> <a target="_blank" href="https://clublog.org/logsearch.php?log='+qso.dx+'&call='+qso.de+'"><img width="16" height="16" src="'+base_url+'images/icons/clublog.png" alt="Clublog Log Search"></a></span></span>');
|
||||
}
|
||||
}
|
||||
if (user_options.mode.show || 'true' == "true"){
|
||||
if ((user_options.mode.show ?? 'true') == "true"){
|
||||
if (qso.mode === '') {
|
||||
data.push('<span class="bg-danger">Missing mode</span>');
|
||||
} else {
|
||||
data.push(qso.mode);
|
||||
}
|
||||
}
|
||||
if (user_options.rsts.show || 'true' == "true"){
|
||||
if ((user_options.rsts.show ?? 'true') == "true"){
|
||||
data.push(qso.rstS);
|
||||
}
|
||||
if (user_options.rstr.show || 'true' == "true"){
|
||||
if ((user_options.rstr.show ?? 'true') == "true"){
|
||||
data.push(qso.rstR);
|
||||
}
|
||||
if (user_options.band.show || 'true' == "true"){
|
||||
if ((user_options.band.show ?? 'true') == "true"){
|
||||
if (qso.band === '') {
|
||||
data.push('<span class="bg-danger">Missing band</span>');
|
||||
} else {
|
||||
data.push(qso.band);
|
||||
}
|
||||
}
|
||||
if (user_options.gridsquare.show || 'true' == "true"){
|
||||
if ((user_options.gridsquare.show ?? 'true') == "true"){
|
||||
data.push(qso.gridsquare);
|
||||
}
|
||||
if (user_options.name.show || 'true' == "true"){
|
||||
if ((user_options.name.show ?? 'true') == "true"){
|
||||
data.push(qso.name);
|
||||
}
|
||||
if (user_options.qslvia.show || 'true' == "true"){
|
||||
if ((user_options.qslvia.show ?? 'true') == "true"){
|
||||
data.push(qso.qslVia);
|
||||
}
|
||||
if (user_options.clublog.show || 'true' == "true"){
|
||||
if ((user_options.clublog.show ?? 'true') == "true"){
|
||||
data.push(qso.clublog);
|
||||
}
|
||||
if (user_options.qsl.show || 'true' == "true"){
|
||||
if ((user_options.qsl.show ?? 'true') == "true"){
|
||||
data.push(qso.qsl);
|
||||
}
|
||||
if ($(".eqslconfirmation")[0] && user_options.eqsl.show || 'true' == "true"){
|
||||
if ($(".eqslconfirmation")[0] && (user_options.eqsl.show ?? 'true') == "true"){
|
||||
data.push(qso.eqsl);
|
||||
}
|
||||
if ($(".lotwconfirmation")[0] && user_options.lotw.show || 'true' == "true"){
|
||||
if ($(".lotwconfirmation")[0] && (user_options.lotw.show ?? 'true') == "true"){
|
||||
data.push(qso.lotw);
|
||||
}
|
||||
if (user_options.qrz.show || 'true' == "true"){
|
||||
if ((user_options.qrz.show ?? 'true') == "true"){
|
||||
data.push(qso.qrz);
|
||||
}
|
||||
if (user_options.qslmsgs.show || 'true' == "true"){
|
||||
if ((user_options.qslmsgs.show ?? 'true') == "true"){
|
||||
data.push(qso.qslMessage);
|
||||
}
|
||||
if (user_options.qslmsgr.show || 'true' == "true"){
|
||||
if ((user_options.qslmsgr.show ?? 'true') == "true"){
|
||||
data.push(qso.qslMessageR);
|
||||
}
|
||||
if (user_options.dxcc.show || 'true' == "true"){
|
||||
if ((user_options.dxcc.show ?? 'true') == "true"){
|
||||
data.push(qso.dxcc+(qso.end == null ? '' : ' <span class="badge bg-danger">Deleted DXCC</span>'));
|
||||
}
|
||||
if (user_options.state.show || 'true' == "true"){
|
||||
if ((user_options.state.show ?? 'true') == "true"){
|
||||
data.push(qso.state);
|
||||
}
|
||||
if (user_options.cqzone.show || 'true' == "true"){
|
||||
if ((user_options.cqzone.show ?? 'true') == "true"){
|
||||
data.push(qso.cqzone);
|
||||
}
|
||||
if (user_options.ituzone.show || 'true' == "true"){
|
||||
if ((user_options.ituzone.show ?? 'true') == "true"){
|
||||
data.push(qso.ituzone);
|
||||
}
|
||||
if (user_options.iota.show || 'true' == "true"){
|
||||
if ((user_options.iota.show ?? 'true') == "true"){
|
||||
data.push(qso.iota);
|
||||
}
|
||||
if (user_options.pota.show || 'true' == "true"){
|
||||
if ((user_options.pota.show ?? 'true') == "true"){
|
||||
data.push(qso.pota);
|
||||
}
|
||||
if (user_options.sota.show || 'true' == "true"){
|
||||
if ((user_options.sota.show ?? 'true') == "true"){
|
||||
data.push(qso.sota);
|
||||
}
|
||||
if (user_options.dok.show || 'true' == "true"){
|
||||
if ((user_options.dok.show ?? 'true') == "true"){
|
||||
data.push(qso.dok);
|
||||
}
|
||||
if (user_options.wwff.show || 'true' == "true"){
|
||||
if ((user_options.wwff.show ?? 'true') == "true"){
|
||||
data.push(qso.wwff);
|
||||
}
|
||||
if (user_options.sig.show || 'true' == "true"){
|
||||
if ((user_options.sig.show ?? 'true') == "true"){
|
||||
data.push(qso.sig);
|
||||
}
|
||||
if (user_options.region.show || 'true' == "true"){
|
||||
if ((user_options.region.show ?? 'true') == "true"){
|
||||
data.push(qso.region);
|
||||
}
|
||||
if (user_options.operator.show || 'true' == "true"){
|
||||
if ((user_options.operator.show ?? 'true') == "true"){
|
||||
data.push(qso.operator);
|
||||
}
|
||||
if (user_options.comment.show || 'true' == "true"){
|
||||
if ((user_options.comment.show ?? 'true') == "true"){
|
||||
data.push(qso.comment);
|
||||
}
|
||||
if (user_options.propagation.show || 'true' == "true"){
|
||||
if ((user_options.propagation.show ?? 'true') == "true"){
|
||||
data.push(qso.propagation);
|
||||
}
|
||||
if (user_options.contest.show || 'true' == "true"){
|
||||
if ((user_options.contest.show ?? 'true') == "true"){
|
||||
data.push(qso.contest);
|
||||
}
|
||||
if (user_options.myrefs.show || 'true' == "true"){
|
||||
if ((user_options.myrefs.show ?? 'true') == "true"){
|
||||
data.push(qso.deRefs);
|
||||
}
|
||||
if (user_options.continent.show || 'true' == "true"){
|
||||
if ((user_options.continent.show ?? 'true') == "true"){
|
||||
data.push(qso.continent);
|
||||
}
|
||||
if (user_options.distance.show || 'true' == "true"){
|
||||
if ((user_options.distance.show ?? 'true') == "true"){
|
||||
data.push(qso.distance);
|
||||
}
|
||||
if (user_options.antennaazimuth.show || 'true' == "true"){
|
||||
if ((user_options.antennaazimuth.show ?? 'true') == "true"){
|
||||
data.push(qso.antennaazimuth);
|
||||
}
|
||||
if (user_options.antennaelevation.show || 'true' == "true"){
|
||||
if ((user_options.antennaelevation.show ?? 'true') == "true"){
|
||||
data.push(qso.antennaelevation);
|
||||
}
|
||||
if (user_options.profilename.show || 'true' == "true"){
|
||||
if ((user_options.profilename.show ?? 'true') == "true"){
|
||||
data.push(qso.profilename);
|
||||
}
|
||||
if (user_options.stationpower.show || 'true' == "true"){
|
||||
if ((user_options.stationpower.show ?? 'true') == "true"){
|
||||
data.push(qso.stationpower);
|
||||
}
|
||||
data.id='qsoID-' + qso.qsoID;
|
||||
|
||||
Reference in New Issue
Block a user