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:32 +0000 (23:46 +0200)
commit9f666741b218d9032f7ea723ba50a02b66d38898
treebfc5ac9c90778c235efd76e209b06abddddda48c
parentb1763272fb7e63dd2a4c582a9ee65025874e20d4
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>
(cherry picked from commit ee6a4da00b70949eccb5a0a7b69d2c5b98ef1f89)
modules/luci-base/htdocs/luci-static/resources/ui.js