diff --git a/application/views/logbookadvanced/checkresult.php b/application/views/logbookadvanced/checkresult.php index 621d38cca..890501263 100644 --- a/application/views/logbookadvanced/checkresult.php +++ b/application/views/logbookadvanced/checkresult.php @@ -329,7 +329,14 @@ function check_incorrect_itu_zones($result, $custom_date_format) { ?>
-
+

+
+
+ + +
+
+
@@ -363,7 +370,7 @@ function check_incorrect_itu_zones($result, $custom_date_format) { ?> echo ''; if($qso->COL_SAT_NAME != null) { echo $qso->COL_SAT_NAME; } else { echo strtolower($qso->COL_BAND); }; echo ''; echo ''; echo strlen($qso->COL_GRIDSQUARE ?? '')==0?$qso->COL_VUCC_GRIDS:$qso->COL_GRIDSQUARE; echo ''; echo '' . $qso->COL_ITUZ . ''; - echo '' . $qso->correctituzone . ''; + echo '' . $qso->correctituzone . ''; echo '' . ucwords(strtolower($qso->COL_COUNTRY), "- (/") . ''; echo '' . $qso->station_profile_name . ''; echo ''; diff --git a/application/views/logbookadvanced/dbtoolsdialog.php b/application/views/logbookadvanced/dbtoolsdialog.php index c62fe71fb..b4990e92d 100644 --- a/application/views/logbookadvanced/dbtoolsdialog.php +++ b/application/views/logbookadvanced/dbtoolsdialog.php @@ -7,17 +7,6 @@

-
-
-
-

-
-
- -
-
@@ -29,19 +18,6 @@
- -
-
-
-

-
-
- -
-
-
@@ -53,8 +29,7 @@
- -
+

diff --git a/application/views/logbookadvanced/index.php b/application/views/logbookadvanced/index.php index 00f10ab8e..b6350a4ee 100644 --- a/application/views/logbookadvanced/index.php +++ b/application/views/logbookadvanced/index.php @@ -793,8 +793,6 @@ $options = json_decode($options); - -
diff --git a/assets/js/sections/logbookadvanced.js b/assets/js/sections/logbookadvanced.js index fa7ea301c..b7876832c 100644 --- a/assets/js/sections/logbookadvanced.js +++ b/assets/js/sections/logbookadvanced.js @@ -2725,12 +2725,18 @@ function saveOptions() { $('#checkBoxAllItuZones').change(function (event) { if (this.checked) { $('#incorrectituzonetable tbody tr').each(function (i) { - selectQsoIdDxcc($(this).first().closest('tr').attr('id')?.replace(/\D/g, ''), 'incorrectituzonetable'); + if (!$(this).first().closest('tr').find("td[id='ituZones']").text().includes(',') || $('#forceMultiZoneUpdate').prop("checked")) { + selectQsoIdDxcc($(this).first().closest('tr').attr('id')?.replace(/\D/g, ''), 'incorrectituzonetable'); + } }); + if (!$('#forceMultiZoneUpdate').prop("checked")) { + $('#incorrectituzonetable').DataTable().column(8).search('^[^,]*$', true, false).draw(); + } } else { $('#incorrectituzonetable tbody tr').each(function (i) { unselectQsoIdDxcc($(this).first().closest('tr').attr('id')?.replace(/\D/g, ''), 'incorrectituzonetable'); }); + $('#incorrectituzonetable').DataTable().column(8).search('').draw(); } }); } @@ -2900,7 +2906,10 @@ function saveOptions() { let id_list = []; $('#incorrectituzonetable tbody input:checked').each(function () { let id = $(this).closest('tr').attr('id')?.replace(/\D/g, ''); - id_list.push(id); + // Skip entry if DXCC covers multiple ITU zones as the matching one cannot be identified automagically atm or force update + if (!$(this).closest('tr').find("td[id='ituZones']").text().includes(',') || $('#forceMultiZoneUpdate').prop("checked")) { + id_list.push(id); + } }); if (id_list.length === 0) { @@ -2916,6 +2925,8 @@ function saveOptions() { return; } + let table = $('#incorrectituzonetable').DataTable(); + $('#fixSelectedItuZoneBtn').prop("disabled", true).addClass("running"); $('#closeButton').prop("disabled", true); @@ -2928,7 +2939,8 @@ function saveOptions() { $('#closeButton').prop("disabled", false); id_list.forEach(function(id) { let row = $("#incorrectituzonetable tbody tr#qsoID-" + id); - row.remove(); + table.row(row).remove(); + table.draw(false); }); $('.dxcctablediv').html(data.message); },