From ed914df3f518faa29795308adb12084754965d39 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 29 Dec 2018 14:19:59 +0100 Subject: luci-base: rework filebrowser initialization Do not call cbi_init() from the browser field template but lazily initialize the field, like it is being done for all other widgets as well. Fixes: #2398 Signed-off-by: Jo-Philipp Wich --- modules/luci-base/luasrc/view/cbi/browser.htm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'modules/luci-base/luasrc/view/cbi') diff --git a/modules/luci-base/luasrc/view/cbi/browser.htm b/modules/luci-base/luasrc/view/cbi/browser.htm index 362c40bec1..eb47ffafe6 100644 --- a/modules/luci-base/luasrc/view/cbi/browser.htm +++ b/modules/luci-base/luasrc/view/cbi/browser.htm @@ -1,8 +1,10 @@ -<% local v = self:cfgvalue(section) or self.default -%> <%+cbi/valueheader%> - /> - + + /> + <%+cbi/valuefooter%> -- cgit v1.2.3