diff options
Diffstat (limited to 'libs/web/luasrc/view/cbi/browser.htm')
-rw-r--r-- | libs/web/luasrc/view/cbi/browser.htm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/web/luasrc/view/cbi/browser.htm b/libs/web/luasrc/view/cbi/browser.htm index 3b7b23f5d..08df483b5 100644 --- a/libs/web/luasrc/view/cbi/browser.htm +++ b/libs/web/luasrc/view/cbi/browser.htm @@ -14,10 +14,11 @@ $Id$ -%> <% - local t = require("luci.tools.webadmin") local v = self:cfgvalue(section) -%> <%+cbi/valueheader%> <input class="cbi-input-text" type="text"<%= attr("value", v) .. attr("name", cbid) .. attr("id", cbid) %> /> - <input class="cbi-input-image" type="image" value="<%:Search file...%>" onclick="cbi_filebrowser('<%=cbid%>','<%=luci.dispatcher.build_url("admin", "filebrowser")%>'<%=self.default_path and ", '"..self.default_path.."'"%>);return false" alt="<%:Search file...%>" title="<%:Search file...%>" src="<%=resource%>/cbi/folder.png" style="vertical-align:bottom" /> + <script type="text/javascript"> +cbi_browser_init('<%=cbid%>', '<%=resource%>', '<%=luci.dispatcher.build_url("admin", "filebrowser")%>'<%=self.default_path and ", '"..self.default_path.."'"%>); + </script> <%+cbi/valuefooter%> |