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 19:15:52 +0000 (20:15 +0100)
commit2f219f85fc5b2fdcb87553e6013eb386cdaba6d3
treec68b4d3bef44f6c52123a2609881d98c872cd94d
parent80dcda8a2919176c6c7e03458838ac8fc0f6e526
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>
(cherry picked from commit 601c4ee01e21f4da3fc615196d21fde72bfbaee9)
modules/luci-base/htdocs/luci-static/resources/form.js