luci-base: fix button handling for named sections
authorFlorian Eckert <fe@dev.tdt.de>
Mon, 12 Dec 2022 13:58:38 +0000 (14:58 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Tue, 13 Dec 2022 12:32:50 +0000 (13:32 +0100)
commit440a2e79a762b4152ccb7e41c90a2826d9fb3538
tree21965c2da0dc147e9a40beef55eafb25d43cfb78
parent35f0d50a4928f0678bde22ffcd4219a732563641
luci-base: fix button handling for named sections

If more than one named section is added to the page, it is currently the
case, that the first button is always switched on or off during input
validation of the uci section name. This is because the usage of the
'document.querySelector' function is to imprecise. Changing the search
start to the element to be created, fixes this.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
modules/luci-base/htdocs/luci-static/resources/form.js