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:
1d9cc1a
)
luci-base: fix browser.htm template
author
Florian Eckert
<fe@dev.tdt.de>
Fri, 9 Feb 2018 14:12:21 +0000
(15:12 +0100)
committer
Florian Eckert
<fe@dev.tdt.de>
Thu, 1 Mar 2018 11:31:50 +0000
(12:31 +0100)
If cbi_init() is not called first browser gif will not be found.
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 a18120141d5a929e75d76f8e65358b60c5457293..2abc975e8d39e728318e6c2babcecd04493cb488 100644
(file)
--- a/
modules/luci-base/luasrc/view/cbi/browser.htm
+++ b/
modules/luci-base/luasrc/view/cbi/browser.htm
@@
-2,6
+2,7
@@
<%+cbi/valueheader%>
<input class="cbi-input-text" type="text"<%= attr("value", v) .. attr("name", cbid) .. attr("id", cbid) %> />
<script type="text/javascript">
+cbi_init()
cbi_browser_init('<%=cbid%>', '<%=resource%>', '<%=url('admin/filebrowser')%>'<%=self.default_path and ", '"..self.default_path.."'"%>);
</script>
<%+cbi/valuefooter%>