luci-base: ui.js: fix UICheckbox widget operation when tooltips are set
authorJo-Philipp Wich <jo@mein.io>
Mon, 29 Mar 2021 09:24:59 +0000 (11:24 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 29 Mar 2021 09:24:59 +0000 (11:24 +0200)
commit95b5c6cd6464d11d6baa22bcf2c9469847353813
treecfce0d013172477d8cad903f4d98d5895bf9f631
parent9ff45c938faf148e99a5c683fe89615a46313769
luci-base: ui.js: fix UICheckbox widget operation when tooltips are set

When a tooltip is rendered for a checkbox widget, an additional node is
placed after the checkbox label element, breaking DOM selectors in
bind(), isChecked(), setValue().

Apparently the functionality was never actually tested.

Fixes: #4938
Fixes: e951236e3 ("luci-base: add tooltip handling")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/ui.js