[DXCluster list] Added "Not worked" in the dropdown

This commit is contained in:
Andreas Kristiansen
2025-07-13 09:16:54 +02:00
parent 6da813bd0b
commit dadf2f22e3
2 changed files with 4 additions and 2 deletions

View File

@@ -76,9 +76,10 @@
<label class="my-1 me-2" for="cwnSelect"><?= __("DXCC-Status"); ?></label>
<select class="form-select form-select-sm my-1 me-sm-2 w-auto" id="cwnSelect" name="dxcluster_cwn" aria-describedby="dxcluster_cwnHelp" required>
<option value="All"><?= __("All"); ?></option>
<option value="notwkd"><?= __("Not worked"); ?></option>
<option value="wkd"><?= __("Worked"); ?></option>
<option value="cnf"><?= __("Confirmed"); ?></option>
<option value="ucnf"><?= __("Not Confirmed"); ?></option>
<option value="ucnf"><?= __("Worked, not Confirmed"); ?></option>
</select>
<label class="my-1 me-2" for="decontSelect"><?= __("Spots de"); ?></label>
<select class="form-select form-select-sm my-1 me-sm-2 w-auto" id="decontSelect" name="dxcluster_decont" aria-describedby="dxcluster_decontHelp" required>

View File

@@ -53,9 +53,10 @@ $(function() {
if (dxspots.length>0) {
dxspots.sort(SortByQrg);
dxspots.forEach((single) => {
if ((cwn == 'notwkd') && ((single.worked_dxcc))) { return; }
if ((cwn == 'wkd') && (!(single.worked_dxcc))) { return; }
if ((cwn == 'cnf') && (!(single.cnfmd_dxcc))) { return; }
if ((cwn == 'ucnf') && ((single.cnfmd_dxcc))) { return; }
if ((cwn == 'ucnf') && (!(single.worked_dxcc) || single.cnfmd_dxcc)) { return; }
spots2render++;
var data=[];
if (single.cnfmd_dxcc) {