If cbi_init() is not called first browser gif will not be found. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
8 lines
385 B
HTML
8 lines
385 B
HTML
<% local v = self:cfgvalue(section) -%>
|
|
<%+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%>
|