From 785187e2423bec7f386ee0255c8b74585534a82f Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 29 May 2024 22:23:55 +0200 Subject: [PATCH 1/2] Hide hint and button if number of workable passes matches number of all passes --- assets/js/sections/hamsat.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/assets/js/sections/hamsat.js b/assets/js/sections/hamsat.js index e45c1607f..8be780ede 100644 --- a/assets/js/sections/hamsat.js +++ b/assets/js/sections/hamsat.js @@ -135,6 +135,11 @@ function loadActivationsTable(rows, show_workable_only) { table.rows(createdRow).nodes().to$().data('activationID', activation.id); table.row(createdRow).node().id = 'activationID-' + activation.id; } + if (workable_rows == rows.length) { + console.log("TEST: "+rows.length+"-"+workable_rows); + $('#toggle_workable').hide(); + $('#workable_hint').hide(); + } if (workable_only == '1') { if (rows.length > workable_rows) { $('#toggle_workable').html('Show all passes ('+rows.length+')'); From a126056c148b9ead2d41736b8289089d32a541a0 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 29 May 2024 22:25:31 +0200 Subject: [PATCH 2/2] Remove debug output --- assets/js/sections/hamsat.js | 1 - 1 file changed, 1 deletion(-) diff --git a/assets/js/sections/hamsat.js b/assets/js/sections/hamsat.js index 8be780ede..1c2cf4928 100644 --- a/assets/js/sections/hamsat.js +++ b/assets/js/sections/hamsat.js @@ -136,7 +136,6 @@ function loadActivationsTable(rows, show_workable_only) { table.row(createdRow).node().id = 'activationID-' + activation.id; } if (workable_rows == rows.length) { - console.log("TEST: "+rows.length+"-"+workable_rows); $('#toggle_workable').hide(); $('#workable_hint').hide(); }