mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-27 16:01:14 +00:00
Fix Plugson Web update issue.
This commit is contained in:
@@ -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('');
|
||||
|
Reference in New Issue
Block a user