X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/4bf43ab9d4e6b724836724c1d514760d164df79a..2ad69decada034b08d75cbefdc680ba1fd05e754:/Plugson/www/plugson_auto_install.html diff --git a/Plugson/www/plugson_auto_install.html b/Plugson/www/plugson_auto_install.html index a8137bf..4b3066c 100644 --- a/Plugson/www/plugson_auto_install.html +++ b/Plugson/www/plugson_auto_install.html @@ -107,8 +107,8 @@ var id = $(this).attr('id'); var value = $(this).val(); var intval; - - if (id.length <= 16) { + + if (typeof(id) == 'undefined' || id.length <= 16) { return; } @@ -146,7 +146,7 @@ var id = $(this).attr('id'); var checked = $(this).is(':checked'); - if (id.length <= 14) { + if (typeof(id) == 'undefined' || id.length <= 14) { return; } @@ -156,9 +156,11 @@ if (id.startsWith('id_timeout_en_')) { textid = 'input[id=id_text_timeout_' + index + ']'; value = data.timeout; + data.timeouten = checked; } else { textid = 'input[id=id_text_autosel_' + index + ']'; value = data.autosel; + data.autoselen = checked; } if (checked) { @@ -277,7 +279,9 @@ $('input[type=text]').each(function (){ var id = $(this).attr('id'); - + if (typeof(id) == 'undefined') { + return; + } if (id.startsWith('id_text_timeout_') || id.startsWith('id_text_autosel_')) { $(this).change(OnInputTextChange); } @@ -285,6 +289,9 @@ $('input[type=checkbox]').each(function (){ var id = $(this).attr('id'); + if (typeof(id) == 'undefined') { + return; + } if (id.startsWith('id_timeout_en_') || id.startsWith('id_autosel_en_')) { $(this).click(OnCheckBoxChange); }