mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-28 00:11:15 +00:00
fix plugson page language issue
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -279,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);
|
||||
}
|
||||
@@ -287,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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user