From 0c02883aa47fc969ed59591b05a120fe70b4e04d Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 28 Apr 2023 23:52:45 +0200 Subject: [PATCH] luci-mod-system: uhttpd.js: remove flag option overrides Use standard 0/1 values for the `redirect_https` option. Supersedes: #6332 Signed-off-by: Jo-Philipp Wich (cherry picked from commit 58f7b27adf0087721dcb509f16745203513e15e8) --- .../htdocs/luci-static/resources/view/system/uhttpd.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/uhttpd.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/uhttpd.js index d02e18505a..6febb4cc17 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/uhttpd.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/uhttpd.js @@ -12,9 +12,6 @@ return view.extend({ s.addremove = false; o = s.option(form.Flag, 'redirect_https', _('Redirect to HTTPS'), _('Enable automatic redirection of HTTP requests to HTTPS port.')); - o.enabled = 'on'; - o.disabled = 'off'; - o.default = o.disabled; o.rmempty = false; return m.render(); -- 2.30.2