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") { + } +});