luci-base: form.js: add modal dialog hook
authorJo-Philipp Wich <jo@mein.io>
Wed, 31 Jul 2019 06:00:29 +0000 (08:00 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 1 Aug 2019 14:48:50 +0000 (16:48 +0200)
commiteb9051c307fa8d6f7da233ee9a5ad7fa732bdc0d
tree48be0d24b76ed8ab4524cd41d4d54a93815698cb
parent5e67b8b72be046d8acd703f5f2e5799b153fed6e
luci-base: form.js: add modal dialog hook

Add a new `addModalOptions()` hook which allows to supply additional
cbi options the modal map before the dialog is rendered.

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