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>
Thu, 16 Jan 2020 08:06:53 +0000 (09:06 +0100)
commite01ef084421350c83dae0d0200a3178e19f010db
tree1765d67aff940743cffa272187c169c6eaa3247c
parent335692a738ac8f928aff5174a5d2899935e3ea52
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>
(cherry picked from commit 77c2998f32caccac52a885e84bb6357a9799ebca)
modules/luci-base/htdocs/luci-static/resources/form.js