Merge pull request #2282 from TDT-AG/pr/20181114-luci-base

luci-base: allow optional default value for file browser
This commit is contained in:
Jo-Philipp Wich 2018-11-14 20:48:15 +01:00 committed by GitHub
commit e442bfe0ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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">