diff --git a/static/js/modes/weather-satellite.js b/static/js/modes/weather-satellite.js index 20adc73..e5fc916 100644 --- a/static/js/modes/weather-satellite.js +++ b/static/js/modes/weather-satellite.js @@ -332,7 +332,10 @@ const WeatherSat = (function() { */ function preSelect(satellite) { const satSelect = document.getElementById('weatherSatSelect'); - if (satSelect) satSelect.value = satellite; + if (satSelect) { + satSelect.value = satellite; + satSelect.dispatchEvent(new Event('change')); + } } /** @@ -342,6 +345,7 @@ const WeatherSat = (function() { const satSelect = document.getElementById('weatherSatSelect'); if (satSelect) { satSelect.value = satellite; + satSelect.dispatchEvent(new Event('change')); } start(); } diff --git a/templates/satellite_dashboard.html b/templates/satellite_dashboard.html index e260197..3622ec6 100644 --- a/templates/satellite_dashboard.html +++ b/templates/satellite_dashboard.html @@ -2194,7 +2194,7 @@ // Satellites that can be handed off to the weather-satellite capture mode const WEATHER_SAT_KEYS = new Set([ - 'METEOR-M2', 'METEOR-M2-3', 'METEOR-M2-4' + 'METEOR-M2-3', 'METEOR-M2-4' ]); function renderPassList() {