From 4f50a4fa83f56b5a0abd9f623f15952138e4e919 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 31 Jan 2020 11:19:09 +0100 Subject: [PATCH] luci-mod-network: dhcp.js: fix resolvefile option depends Ref: https://forum.openwrt.org/t/resolvfile-option-not-showing/54229 Signed-off-by: Jo-Philipp Wich (cherry picked from commit 5d15363408d263fccae90b3b7ab0ebac6329eebb) --- .../htdocs/luci-static/resources/view/network/dhcp.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index 16fd83f47..fc3682d20 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -173,7 +173,8 @@ return L.view.extend({ _('Resolve file'), _('local DNS file')); - o.depends('noresolv', ''); + o.depends('noresolv', '0'); + o.placeholder = '/tmp/resolv.conf.auto'; o.optional = true; -- 2.25.1