From fe7f7fa9ff1936e972177a3a230121ddde4e5fac Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Wed, 4 Mar 2026 07:44:22 +0100 Subject: [PATCH] Added JS for band changes --- application/views/awards/wae/index.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/application/views/awards/wae/index.php b/application/views/awards/wae/index.php index 055ddb8e2..8fa04be72 100644 --- a/application/views/awards/wae/index.php +++ b/application/views/awards/wae/index.php @@ -8,6 +8,27 @@ document.addEventListener("DOMContentLoaded", function() { }); }); }); +$('#band2').change(function(){ + var band = $("#band2 option:selected").text(); + if (band != "SAT") { + $("#sats").val('All'); + $("#orbits").val('All'); + $("#satrow").hide(); + $("#orbitrow").hide(); + } else { + $("#satrow").show(); + $("#orbitrow").show(); + } +}); + +$('#band2').change(); // trigger the change on fresh-load to hide/show SAT-Params + +$('#sats').change(function(){ + var sat = $("#sats option:selected").text(); + $("#band2").val('SAT'); + if (sat != "All") { + } +});