luci-base: form.js: add AbstractValue.onchange property
authorJo-Philipp Wich <jo@mein.io>
Mon, 3 Aug 2020 13:34:07 +0000 (15:34 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 5 Aug 2020 11:51:16 +0000 (13:51 +0200)
commit2d774c4973a654632153aa11413e2502836672ed
tree5809145554e52a8e0c84c5cf541bb903fff6052d
parent572090101db2afc621d2d18ef3e3d6a86202a406
luci-base: form.js: add AbstractValue.onchange property

Introduce a new, widget agnostic onchange property which allows setting
custom handler functions to react on element value changes.

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