luci-base: form.js: fix GridSection modals in JSONMap instances
authorJo-Philipp Wich <jo@mein.io>
Sat, 4 Feb 2023 20:03:51 +0000 (21:03 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 4 Feb 2023 20:03:51 +0000 (21:03 +0100)
commit6fe34990265a02dac20f7b352e4039a90fed45ca
tree4b2f6060e891b5c26383c9239126703eff25043f
parent30fa6bcc66118e3c60e8f5b1b77b6a68b5b89328
luci-base: form.js: fix GridSection modals in JSONMap instances

Since grid section edit modals construct a new Map instance internally,
we must take care of using the correct map constructor type for the
internal copy in order to end up with the correct data provider.

Ensure that the extended option modal of GridSection instances uses a
JSONMap when the grid section's owner map is a JSONMap to avoid stray
uci related errors.

Ref: https://forum.openwrt.org/t/luci-save-apply/149658/5
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/form.js