From: Florian Eckert Date: Wed, 14 Nov 2018 09:05:02 +0000 (+0100) Subject: luci-base: allow optional default value for file browser X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F2282%2Fhead;p=oweals%2Fluci.git 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 --- diff --git a/modules/luci-base/luasrc/view/cbi/browser.htm b/modules/luci-base/luasrc/view/cbi/browser.htm index 2abc975e8..362c40bec 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%> />