mirror of https://github.com/ventoy/Ventoy.git
Fix Plugson Web update issue.
This commit is contained in:
parent
b8e624b0a0
commit
8e529c8559
|
@ -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) {
|
||||
|
|
|
@ -156,14 +156,17 @@
|
|||
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) {
|
||||
$(textid).attr("disabled", false);
|
||||
$(textid).val(value);
|
||||
|
||||
} else {
|
||||
$(textid).attr("disabled", true);
|
||||
$(textid).val('');
|
||||
|
|
Loading…
Reference in New Issue