luci-base: cbi.js: await L.ui load before updating tables
authorJo-Philipp Wich <jo@mein.io>
Wed, 9 Nov 2022 19:26:14 +0000 (20:26 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 9 Nov 2022 19:30:20 +0000 (20:30 +0100)
commitbdfdd95a273f6fc73017795805dcfe6ee1ae8a8e
tree51f900c1203b7c6c7d486bf1340b895dba4bf85f
parentd88a0c89896d87b4b64c69898c37088c0594f37a
luci-base: cbi.js: await L.ui load before updating tables

On legacy views, the `L.ui` JavaScript class is not automatically loaded,
so request it before updating tables.

Fixes: e0e6989a4a ("luci-base: introduce new LuCI.ui.Table class")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js