luci-base: cbi.js: rework client side input validation
authorJo-Philipp Wich <jo@mein.io>
Fri, 19 Oct 2018 06:39:23 +0000 (08:39 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 5 Nov 2018 10:01:45 +0000 (11:01 +0100)
commit7337872aa11f0d343b11bb8f3a5ffc12a82076ea
treef81cbddcc779f1f2b035b033e6e4d184942033b7
parent51fb04f6e0303204502974bd5cc748cfa78f553f
luci-base: cbi.js: rework client side input validation

 - Refactor and fix datatype validation functions
 - Turn the type compilation and validation into a proper class
 - Display tooltip with error hint on invalid inputs

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