mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-28 00:11:15 +00:00
Fix the VentoyPlugson issue that default_file value is wrong for more than 10 theme files. (#2608)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user