luci-base: form.js: fix immediate validation of activated options
authorJo-Philipp Wich <jo@mein.io>
Wed, 15 Jan 2020 17:52:16 +0000 (18:52 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 15 Jan 2020 17:52:16 +0000 (18:52 +0100)
commit77c2998f32caccac52a885e84bb6357a9799ebca
treeecdb28bf218e0fa19f57975a92f6d0992ab8f893
parent30cba86db54715d79b567aa88c0261b060aea09f
luci-base: form.js: fix immediate validation of activated options

When form options are activated because their dependencies are satisified,
ensure that an immediate validation is triggered to highlight potential
errors without having the user to activate another form control first.

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