Fix Plugson Web update issue.

pull/1401/head
longpanda 2 years ago
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…
Cancel
Save