luci-base: cbi.js: fix handling of inverse-depends, combobox validation
authorJo-Philipp Wich <jo@mein.io>
Fri, 28 Jul 2017 14:14:53 +0000 (16:14 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 28 Jul 2017 14:14:53 +0000 (16:14 +0200)
commit4c9ae3f615fb85a888728c251568259fb82246a2
treedc68407586c36fc7ccfacba680236572064759d6
parent4201282559d85988990c8f48f4075bed5f785c2f
luci-base: cbi.js: fix handling of inverse-depends, combobox validation

 - Properly handle logic for evaluating inverted dependencies means
   when depending on another field *not* having a given value

 - Perform datatype validation *after* populating combobox choices to
   avoid triggering a false-positive when validating an .rmempty = false
   combobox during form instantiation

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