Clear CAT value cache on UI reset

When resetting the UI, clear the stored CAT value data on frequency, satellite and mode inputs so re-selecting a radio with identical values will still repopulate fields. Adds a jQuery removeData('catValue') call for #frequency, #frequency_rx, #sat_name, #sat_mode, #transmit_power, #selectPropagation and #mode, with a comment explaining the intent.
This commit is contained in:
Peter Goodhall 2026-04-07 16:21:30 +01:00
parent 766a940003
commit 830df2d00e

View file

@ -2236,6 +2236,8 @@ $(document).ready(function() {
const resetUI = () => {
$("#sat_name, #sat_mode, #frequency, #frequency_rx, #band_rx").val("");
$("#selectPropagation").val($("#selectPropagation option:first").val());
// Clear CAT value cache so re-selecting a radio with identical values still repopulates fields.
$('#frequency, #frequency_rx, #sat_name, #sat_mode, #transmit_power, #selectPropagation, #mode').removeData('catValue');
$(".radio_timeout_error").remove();
};