From 1a52df6bdb14c27a62dbf2df96cdcd8f7e67df45 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Wed, 14 Nov 2018 10:05:02 +0100 Subject: luci-base: allow optional default value for file browser With this change we could set optional value for the file browser. Signed-off-by: Florian Eckert --- modules/luci-base/luasrc/view/cbi/browser.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/luci-base/luasrc') diff --git a/modules/luci-base/luasrc/view/cbi/browser.htm b/modules/luci-base/luasrc/view/cbi/browser.htm index 2abc975e8d..362c40bec1 100644 --- a/modules/luci-base/luasrc/view/cbi/browser.htm +++ b/modules/luci-base/luasrc/view/cbi/browser.htm @@ -1,4 +1,4 @@ -<% local v = self:cfgvalue(section) -%> +<% local v = self:cfgvalue(section) or self.default -%> <%+cbi/valueheader%> />