luci-base: cbi.js: find dropdown and browser instances early
authorJo-Philipp Wich <jo@mein.io>
Tue, 10 Sep 2019 15:07:36 +0000 (17:07 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 10 Sep 2019 15:10:36 +0000 (17:10 +0200)
commit010102c2c24df1fb7826904933ab110f112852a2
tree450aa4f0bdcabfecc8cc3deef0edec5e377cc7b7
parentc981cfd02a53dec99a39a42b8771934c0885fd11
luci-base: cbi.js: find dropdown and browser instances early

Gather dropdown and file browser widget nodes early, before initializing
dynamic list widgets as dynlists invoke a dependency update which in turn
might remove widget nodes from dom before they have been initialized.

Ref: https://github.com/openwrt/luci/issues/2997#issuecomment-524251601
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js