mirror of
https://github.com/magicbug/Cloudlog
synced 2026-08-13 17:49:35 -04:00
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:
parent
766a940003
commit
830df2d00e
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue