luci-base: rework filebrowser initialization
authorJo-Philipp Wich <jo@mein.io>
Sat, 29 Dec 2018 13:19:59 +0000 (14:19 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 29 Dec 2018 13:19:59 +0000 (14:19 +0100)
commited914df3f518faa29795308adb12084754965d39
treee764ef7f3fd81dffa13bf35078bc09aa352f2dbe
parent8cecff2197ab148bdf6dcec1594b7c54b0f95fb5
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 <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js
modules/luci-base/luasrc/view/cbi/browser.htm