luci-base: ui.js: sorting fixes for tables initialized from markup
authorJo-Philipp Wich <jo@mein.io>
Thu, 19 Oct 2023 21:42:13 +0000 (23:42 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 19 Oct 2023 21:46:03 +0000 (23:46 +0200)
commitee6a4da00b70949eccb5a0a7b69d2c5b98ef1f89
tree9b12f6d1fe7615d23480e75872888040a4070a32
parentbc37a550acf43c32c15765e03b634444574a8fc4
luci-base: ui.js: sorting fixes for tables initialized from markup

 - Populate id option from table id attribute
 - Update column head sort indicator in UITable.update()
 - Don't store sort state for tables without id

Ref: https://github.com/openwrt/luci/issues/6640
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/ui.js