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:23:27 +0000 (22:23 +0100)
commit790b738ddad6cdc54e897ab7b89208e15394b489
tree3930e88bc85f44b28fb270a11a834801eebe74e8
parent66fc1ad1f5c2464979e534b6c86055a1dc436881
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>
(cherry picked from commit dd47f3f6742a6d80221b75aa7b6ea27eca2bb535)
modules/luci-base/htdocs/luci-static/resources/form.js