X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/blobdiff_plain/8e529c85599e98a672765b71d1362a401eb5d239..4e5fcf211b22cabc8ccfaa7dd00d5af635844241:/Plugson/www/plugson_persistence.html diff --git a/Plugson/www/plugson_persistence.html b/Plugson/www/plugson_persistence.html index 03d5bea..6b8caf6 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') { + return; + } if (id.startsWith('id_text_timeout_') || id.startsWith('id_text_autosel_')) { $(this).change(OnInputTextChange);