From 60e191ce74c7c366da8dd67ee59d60ce7eacc0c8 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Tue, 7 Oct 2025 22:40:23 +0100 Subject: [PATCH] Toggle #winkey div based on mode selection Show the #winkey div when data.mode is 'CW' and hide it otherwise. This improves the UI by conditionally displaying the Winkey controls only when relevant. --- application/views/interface_assets/footer.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 2ead00a8c..b11a6bc45 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -1956,6 +1956,12 @@ $(document).ready(function() { }); cat2UI($('.mode'), data.mode, false, false, () => { setRst($(".mode").val()); + // If the data.mode is winkey show the div with id winkey if not hide it + if (data.mode === 'CW') { + $('#winkey').show(); + } else { + $('#winkey').hide(); + } }); cat2UI($('#sat_name'), data.satname, false, false); cat2UI($('#sat_mode'), data.satmode, false, false);