X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/036b58ff0c95cc294ad1ec6e5b6a715b89b34e48..76a6b8061c6c4f07a51266c0310b91f684490270:/Plugson/www/plugson_persistence.html diff --git a/Plugson/www/plugson_persistence.html b/Plugson/www/plugson_persistence.html index 03d5bea..60e0134 100644 --- a/Plugson/www/plugson_persistence.html +++ b/Plugson/www/plugson_persistence.html @@ -108,7 +108,7 @@ 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; } @@ -280,6 +280,9 @@ $('input[type=text]').each(function (){ var id = $(this).attr('id'); + if (typeof(id) == 'undefined') { + retunrn; + } if (id.startsWith('id_text_timeout_') || id.startsWith('id_text_autosel_')) { $(this).change(OnInputTextChange);