From 8e529c85599e98a672765b71d1362a401eb5d239 Mon Sep 17 00:00:00 2001 From: longpanda Date: Mon, 10 Jan 2022 19:02:29 +0800 Subject: [PATCH] Fix Plugson Web update issue. --- Plugson/www/plugson_auto_install.html | 2 ++ Plugson/www/plugson_persistence.html | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Plugson/www/plugson_auto_install.html b/Plugson/www/plugson_auto_install.html index a8137bf6..ec5410b9 100644 --- a/Plugson/www/plugson_auto_install.html +++ b/Plugson/www/plugson_auto_install.html @@ -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) { diff --git a/Plugson/www/plugson_persistence.html b/Plugson/www/plugson_persistence.html index 97c6ce91..03d5bea6 100644 --- a/Plugson/www/plugson_persistence.html +++ b/Plugson/www/plugson_persistence.html @@ -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('');