luci-base: form.js: save parent map on opening nested modal map
authorJo-Philipp Wich <jo@mein.io>
Mon, 16 May 2022 11:10:20 +0000 (13:10 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 16 May 2022 11:43:09 +0000 (13:43 +0200)
commit3be479446bdeaf446468c5e7ac3b9bc49da023da
treeba88c8b17cbb8abc5f1d0bcbe4def621a8083ffe
parentf24606b1ffd59cc82c7251243a18f4cfdc4f78d5
luci-base: form.js: save parent map on opening nested modal map

Before opening (rendering) a nested modal map, make sure to save the parent
modal map in order to persist any structural uci changes, such as newly added
anonymous sections to prevent the nested map from operating on stale values
or ephemeral config section IDs.

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