From 8d5f4cbad318244a5cc7610fdae6a2821a311321 Mon Sep 17 00:00:00 2001 From: Fanx Date: Fri, 2 Feb 2024 15:10:39 +0800 Subject: [PATCH] luci-app-smartdns: Fix The list has multiple headers. Signed-off-by: FanxJK (cherry picked from commit 16f4011644b8689fffb0866e2de4e821b2f52d9b) --- .../luci-static/resources/view/smartdns/smartdns.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/applications/luci-app-smartdns/htdocs/luci-static/resources/view/smartdns/smartdns.js b/applications/luci-app-smartdns/htdocs/luci-static/resources/view/smartdns/smartdns.js index 91d7d0964e..191e57e58d 100644 --- a/applications/luci-app-smartdns/htdocs/luci-static/resources/view/smartdns/smartdns.js +++ b/applications/luci-app-smartdns/htdocs/luci-static/resources/view/smartdns/smartdns.js @@ -639,21 +639,21 @@ return view.extend({ s.tab('advanced', _('Advanced Settings')); // enable flag; - o = s.taboption("general", form.Flag, "enabled", _("Enable"), _("Enable")); + o = s.taboption("general", form.Flag, "enabled", _("Enable")); o.rmempty = false; o.default = o.enabled; o.editable = true; // name; - o = s.taboption("general", form.Value, "name", _("DNS Server Name"), _("DNS Server Name")); + o = s.taboption("general", form.Value, "name", _("DNS Server Name")); // IP address; - o = s.taboption("general", form.Value, "ip", _("ip"), _("DNS Server ip")); + o = s.taboption("general", form.Value, "ip", _("DNS Server ip")); o.datatype = "or(ipaddr, string)"; o.rmempty = false; // port; - o = s.taboption("general", form.Value, "port", _("port"), _("DNS Server port")); + o = s.taboption("general", form.Value, "port", _("DNS Server port")); o.placeholder = "default"; o.datatype = "port"; o.rempty = true; @@ -662,7 +662,7 @@ return view.extend({ o.depends("type", "tls"); // type; - o = s.taboption("general", form.ListValue, "type", _("type"), _("DNS Server type")); + o = s.taboption("general", form.ListValue, "type", _("DNS Server type")); o.placeholder = "udp"; o.value("udp", _("udp")); o.value("tcp", _("tcp")); @@ -672,7 +672,7 @@ return view.extend({ o.rempty = false; // server group - o = s.taboption("general", form.Value, "server_group", _("Server Group"), _("DNS Server group")) + o = s.taboption("general", form.Value, "server_group", _("DNS Server group")) o.rmempty = true; o.placeholder = "default"; o.datatype = "hostname"; -- 2.30.2