luci-base: cbi.js: avoid using .form property directly
authorJo-Philipp Wich <jo@mein.io>
Mon, 5 Nov 2018 15:44:20 +0000 (16:44 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 14 Nov 2018 19:46:04 +0000 (20:46 +0100)
commitb468e1416dac79934815e42ec1b44a5de0d41ed8
tree7784b289d472cdefb9a9d2f9e481b6393e65fc61
parenta453f2b9d0eb4345513ac9f493e5bd88337ac244
luci-base: cbi.js: avoid using .form property directly

In order to prepare support for calling cbi validation on non-native form
widgets, remove direct usages of the node.form property and lookup the
containing form using findParent() instead.

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