luci-base: form.js: add a new "contains" dependency mode
authorJo-Philipp Wich <jo@mein.io>
Sun, 19 Jan 2020 15:00:57 +0000 (16:00 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sun, 19 Jan 2020 15:15:22 +0000 (16:15 +0100)
commit601c4ee01e21f4da3fc615196d21fde72bfbaee9
tree7214df5257fd4cab886eb2945f2b7d8d2851861b
parent4670099a20de4700f4c7cb34f67618975b2f3a16
luci-base: form.js: add a new "contains" dependency mode

By tagging option dependencies with `!contains`, dependencies are
considered satisfied when the value is contained in the value of
a related field, instead of being equal to it.

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