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:19:09 +0000 (11:19 +0100)
Ref: https://forum.openwrt.org/t/resolvfile-option-not-showing/54229
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js

index c4db638b11296d8eb4366b9a159ba3fe0cbd59cb..d0a6da20da4458e0361a87ffd393074bd6590eaa 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;