projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e535ef5
)
luci-base: allow optional default value for file browser
2282/head
author
Florian Eckert
<fe@dev.tdt.de>
Wed, 14 Nov 2018 09:05:02 +0000
(10:05 +0100)
committer
Florian Eckert
<fe@dev.tdt.de>
Wed, 14 Nov 2018 09:10:56 +0000
(10:10 +0100)
With this change we could set optional value for the file browser.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
modules/luci-base/luasrc/view/cbi/browser.htm
patch
|
blob
|
history
diff --git
a/modules/luci-base/luasrc/view/cbi/browser.htm
b/modules/luci-base/luasrc/view/cbi/browser.htm
index 2abc975e8d39e728318e6c2babcecd04493cb488..362c40bec197d28d25501997a6df5dc3f7bd9bd8 100644
(file)
--- 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">