From 0eef67c1191c9d7b0b7d4767d3ff9347610812c7 Mon Sep 17 00:00:00 2001 From: Nick Peng Date: Tue, 30 Aug 2022 00:18:11 +0800 Subject: [PATCH] luci: fix warning when save config --- .../root/www/luci-static/resources/view/smartdns/smartdns.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/luci/files/root/www/luci-static/resources/view/smartdns/smartdns.js b/package/luci/files/root/www/luci-static/resources/view/smartdns/smartdns.js index a148869..ba0e563 100644 --- a/package/luci/files/root/www/luci-static/resources/view/smartdns/smartdns.js +++ b/package/luci/files/root/www/luci-static/resources/view/smartdns/smartdns.js @@ -164,10 +164,9 @@ return L.view.extend({ s.tab("seconddns", _("Second Server Settings")); s.tab("custom", _("Custom Settings")); - // Eanble; o = s.taboption("settings", form.Flag, "enabled", _("Enable"), _("Enable or disable smartdns server")); + o.rmempty = false; o.default = o.disabled; - o.rempty = false; // server name; o = s.taboption("settings", form.Value, "server_name", _("Server Name"), _("Smartdns server name"));