summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2018-11-14 10:05:02 +0100
committerFlorian Eckert <fe@dev.tdt.de>2018-11-14 10:10:56 +0100
commit1a52df6bdb14c27a62dbf2df96cdcd8f7e67df45 (patch)
tree04903a54ec3d563faec76272343a6486cab8456b /modules
parente535ef5828d509f1c79cb160a22c159fe4fd9f1f (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')
-rw-r--r--modules/luci-base/luasrc/view/cbi/browser.htm2
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 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%>
<input class="cbi-input-text" type="text"<%= attr("value", v) .. attr("name", cbid) .. attr("id", cbid) %> />
<script type="text/javascript">