luci-base: cbi.js: enable validation for dropdown fields
authorJo-Philipp Wich <jo@mein.io>
Mon, 5 Nov 2018 17:43:32 +0000 (18:43 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 14 Nov 2018 19:46:04 +0000 (20:46 +0100)
commit56249c867ee8e6f8ba2dea20a2912428889a010b
tree41c1cc9070bbdc5fc093fe783b469c99f58f3a71
parentfa391e4f96b5d81a86d8be4891b717cd029c4f13
luci-base: cbi.js: enable validation for dropdown fields

Directly attach validation handlers to cbi dropdowns as well, this allows
validating dropdown choices made by the user, similar to how plain select
boxes are handled by the cbi JavaScript.

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