From 4d71392261d328a6276d5792479efc4e3bc1cdd5 Mon Sep 17 00:00:00 2001
From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com>
Date: Wed, 31 Dec 2025 14:20:50 +0100
Subject: [PATCH] On change listener on force
---
application/views/logbookadvanced/checkresult.php | 6 +++---
assets/js/sections/logbookadvanced.js | 8 ++++++++
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/application/views/logbookadvanced/checkresult.php b/application/views/logbookadvanced/checkresult.php
index e4d9f8bb3..4241b51e4 100644
--- a/application/views/logbookadvanced/checkresult.php
+++ b/application/views/logbookadvanced/checkresult.php
@@ -263,7 +263,7 @@ function check_incorrect_cq_zones($result, $custom_date_format) { ?>
@@ -281,7 +281,7 @@ function check_incorrect_cq_zones($result, $custom_date_format) { ?>
' . __("Mode") . ' |
' . __("Band") . ' |
' . __("Gridsquare") . ' |
-
' . __("CQ Zone") . ' |
+
' . __("CQ Zone") . ' |
' . __("DXCC CQ Zone") . ' |
' . __("DXCC") . ' |
' . __("Station") . ' |
@@ -357,7 +357,7 @@ function check_incorrect_itu_zones($result, $custom_date_format) { ?>
' . __("Mode") . ' |
' . __("Band") . ' |
' . __("Gridsquare") . ' |
-
' . __("ITU Zone") . ' |
+
' . __("ITU Zone") . ' |
' . __("DXCC ITU Zone") . ' |
' . __("DXCC") . ' |
' . __("Station") . ' |
diff --git a/assets/js/sections/logbookadvanced.js b/assets/js/sections/logbookadvanced.js
index cd7f2c125..d0ce657a4 100644
--- a/assets/js/sections/logbookadvanced.js
+++ b/assets/js/sections/logbookadvanced.js
@@ -2611,6 +2611,14 @@ function saveOptions() {
});
});
rebind_checkbox_trigger_cq_zone();
+
+ $('#forceMultiZoneUpdateCq').on('change', function() {
+ if ($(this).is(':checked')) {
+ $('#incorrectcqzonetable').DataTable().column(8).search('').draw();
+ $('#incorrectcqzonetable tbody input[type="checkbox"]').prop('checked', false);
+ $('#incorrectcqzonetable tbody tr.activeRow').removeClass('activeRow');
+ }
+ });
},
});
},