luci-base: ui.js: support div based table markup in UITable.update()
authorJo-Philipp Wich <jo@mein.io>
Tue, 27 Dec 2022 19:20:36 +0000 (20:20 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 27 Dec 2022 19:24:25 +0000 (20:24 +0100)
commitdeed6827b2eb0b58ee8c1d810a584a9589108eac
tree8ee3f7c68287f057d91ed615f9a52937e0efa076
parent91fbd1ac57feb44b00d05a35620b66f42e8997ec
luci-base: ui.js: support div based table markup in UITable.update()

Constructing UITable instances from existing, div based markup is
supported but the UITable.update() implementation did not account
for that, leading to defunct data updates on tables built from div
based markup.

Fix this issue by extending UITable.update() to consider a div based
table structure as well, like we do in UITable.initFromMarkup() already.

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