From 6e401d99e798a84f71c08131f0b5188560b464b5 Mon Sep 17 00:00:00 2001 From: int2001 Date: Thu, 10 Jul 2025 13:23:34 +0000 Subject: [PATCH] Fixes the "select-all" bug --- assets/js/sections/logbookadvanced.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/assets/js/sections/logbookadvanced.js b/assets/js/sections/logbookadvanced.js index 50de2f25c..14ee58a5e 100644 --- a/assets/js/sections/logbookadvanced.js +++ b/assets/js/sections/logbookadvanced.js @@ -359,6 +359,7 @@ function loadQSOTable(rows) { } catch (e) { table.draw(true); } + rebind_checkbox_trigger(); $('[data-bs-toggle="tooltip"]').tooltip(); document.querySelectorAll('.row-check').forEach(checkbox => { @@ -1291,7 +1292,13 @@ $(document).ready(function () { }); }); + rebind_checkbox_trigger(); + $('#searchForm').submit(); + +}); + +function rebind_checkbox_trigger() { $('#checkBoxAll').change(function (event) { if (this.checked) { $('#qsoList tbody tr').each(function (i) { @@ -1303,10 +1310,7 @@ $(document).ready(function () { }); } }); - - $('#searchForm').submit(); - -}); +} function handleQsl(sent, method, tag) { const id_list = getSelectedIdsForMap();