luci-base: form.js: reuse JSONMap data provider in GridSection modals
authorJo-Philipp Wich <jo@mein.io>
Sat, 4 Feb 2023 21:15:42 +0000 (22:15 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 4 Feb 2023 21:22:53 +0000 (22:22 +0100)
commitdd47f3f6742a6d80221b75aa7b6ea27eca2bb535
treefcf5ce70629a381caeabb294485a29a6b028a7ee
parent6fe34990265a02dac20f7b352e4039a90fed45ca
luci-base: form.js: reuse JSONMap data provider in GridSection modals

Reuse the same data provider as the parent JSONMap instance in order
to avoid inadvertently mangling the form data when saving the modal
edit dialog.

Fixes: bb9ede238a ("luci-base: form.js: reuse JSONMap data provider in GridSection modals")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js