diff options
author | Florian Eckert <fe@dev.tdt.de> | 2018-11-14 10:05:02 +0100 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2018-11-14 10:10:56 +0100 |
commit | 1a52df6bdb14c27a62dbf2df96cdcd8f7e67df45 (patch) | |
tree | 04903a54ec3d563faec76272343a6486cab8456b /modules/luci-base | |
parent | e535ef5828d509f1c79cb160a22c159fe4fd9f1f (diff) |
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 <fe@dev.tdt.de>
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/luasrc/view/cbi/browser.htm | 2 |
1 files changed, 1 insertions, 1 deletions
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%> <input class="cbi-input-text" type="text"<%= attr("value", v) .. attr("name", cbid) .. attr("id", cbid) %> /> <script type="text/javascript"> |