Fix Plugson Web update issue.

This commit is contained in:
longpanda 2022-01-10 19:02:29 +08:00
parent b8e624b0a0
commit 8e529c8559
2 changed files with 5 additions and 0 deletions

View File

@ -156,9 +156,11 @@
if (id.startsWith('id_timeout_en_')) { if (id.startsWith('id_timeout_en_')) {
textid = 'input[id=id_text_timeout_' + index + ']'; textid = 'input[id=id_text_timeout_' + index + ']';
value = data.timeout; value = data.timeout;
data.timeouten = checked;
} else { } else {
textid = 'input[id=id_text_autosel_' + index + ']'; textid = 'input[id=id_text_autosel_' + index + ']';
value = data.autosel; value = data.autosel;
data.autoselen = checked;
} }
if (checked) { if (checked) {

View File

@ -156,14 +156,17 @@
if (id.startsWith('id_timeout_en_')) { if (id.startsWith('id_timeout_en_')) {
textid = 'input[id=id_text_timeout_' + index + ']'; textid = 'input[id=id_text_timeout_' + index + ']';
value = data.timeout; value = data.timeout;
data.timeouten = checked;
} else { } else {
textid = 'input[id=id_text_autosel_' + index + ']'; textid = 'input[id=id_text_autosel_' + index + ']';
value = data.autosel; value = data.autosel;
data.autoselen = checked;
} }
if (checked) { if (checked) {
$(textid).attr("disabled", false); $(textid).attr("disabled", false);
$(textid).val(value); $(textid).val(value);
} else { } else {
$(textid).attr("disabled", true); $(textid).attr("disabled", true);
$(textid).val(''); $(textid).val('');