X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/e24dacadcd9b894ddc9e1b2ac85ab1afc10ea01d..dc9a99bb2074cd2af880bf7750e8fdc021e15bdf:/Plugson/www/plugson_theme.html diff --git a/Plugson/www/plugson_theme.html b/Plugson/www/plugson_theme.html index c59a580..1e6e8b0 100644 --- a/Plugson/www/plugson_theme.html +++ b/Plugson/www/plugson_theme.html @@ -357,7 +357,12 @@ var id = $(this).attr('id'); if (typeof(id) != 'undefined' && id.startsWith('id_theme_file')) { $(this).change(function() { - m_data_theme[current_tab_index].default_file =parseInt(id.substr(id.length - 1)); + var prelen = 'id_theme_file_radio'.length; + m_data_theme[current_tab_index].default_file = parseInt(id.substr(id.length - 1)); + if (id.substr(0, prelen) === 'id_theme_file_radio') { + m_data_theme[current_tab_index].default_file = parseInt(id.substr(prelen)); + } + VtoySaveCurrentPage(); }); }