luci-base: form.js: implement AbstractSection.getOption() helper
authorJo-Philipp Wich <jo@mein.io>
Thu, 6 Aug 2020 14:56:46 +0000 (16:56 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 6 Aug 2020 15:56:34 +0000 (17:56 +0200)
commit35e2735e2ebc5cee82bcb746b86ca417e9fe4088
treefea6e0306f83534abec0fb07b174fa7340978824
parent18eddc962418a045524a740061625834a77153d8
luci-base: form.js: implement AbstractSection.getOption() helper

The `getOption()` function allows to easily obtain a reference to another
option object instance within the same section.

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