luci-base: cbi.js: untangle dropdown and dynlists from dependency update
authorJo-Philipp Wich <jo@mein.io>
Tue, 5 Feb 2019 09:39:17 +0000 (10:39 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 13:25:49 +0000 (15:25 +0200)
commit6b8701c7bfac8962df12bbbf63c271892fb66530
tree9e722b69c20ca459079a7eab50f5ccf95fbfb594
parent1b931e0262796b0179ed92a6a893de9ee1049d01
luci-base: cbi.js: untangle dropdown and dynlists from dependency update

In order to prepare the move of the dynlist and dropdown widgets into
the LuCI ui class, remove the direct calls to cbi_d_update() and replace
them with custom events instead.

Extend cbi_init() to handle these custom events and to invoke
cbi_d_update() when receiving them.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js