luci-mod-network: dhcp.js: fix resolvefile option depends
authorJo-Philipp Wich <jo@mein.io>
Fri, 31 Jan 2020 10:19:09 +0000 (11:19 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 31 Jan 2020 10:20:41 +0000 (11:20 +0100)
Ref: https://forum.openwrt.org/t/resolvfile-option-not-showing/54229
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 5d15363408d263fccae90b3b7ab0ebac6329eebb)

modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index 16fd83f4720e3bfcb16911208e48d11652f05836..fc3682d20b180f3b33c7825623cdf27b6071c5b8 100644 (file)
@@ -173,7 +173,8 @@ return L.view.extend({
                        _('Resolve file'),
                        _('local <abbr title="Domain Name System">DNS</abbr> file'));
 
-               o.depends('noresolv', '');
+               o.depends('noresolv', '0');
+               o.placeholder = '/tmp/resolv.conf.auto';
                o.optional = true;