luci-base: form.js: rework stacked modal CBI map logic
authorJo-Philipp Wich <jo@mein.io>
Thu, 5 May 2022 21:07:13 +0000 (23:07 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 1 Aug 2022 09:57:42 +0000 (11:57 +0200)
commitb556cdf93e21a7cfd0762025d6d3f3930cb017ec
treea397c1a8ab2a9de4005db06d305108d5de4ef6f0
parent69231a7d62a3b809fc5972071e691fb02730a10e
luci-base: form.js: rework stacked modal CBI map logic

Only stack a new modal CBI map on top of the currently displayed modal one
if the related map or section differs. This prevents misbehavior when
switching the protocol of interfaces.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit f2fa59e89af3d4bdae9b12471184425b307ad5d6)
modules/luci-base/htdocs/luci-static/resources/form.js