From 26714de21fd882aa49105e71059767c4f1fcc45e Mon Sep 17 00:00:00 2001 From: Thomas Schröder Date: Wed, 27 Mar 2024 18:17:51 +0100 Subject: luci-mod-status: persist sorting of Wi-Fi associated stations table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Similar to commit 6039925 from @jow- Add an ID attribute to the dynamically generated Wi-Fi associated stations table to persist row ordering choice across reloads. At the luci-mod-network view, the Wi-Fi associated stations table already has the same id. Signed-off-by: Thomas Schröder --- .../htdocs/luci-static/resources/view/status/include/60_wifi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js index c4fa31fcf6..5804100db4 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/60_wifi.js @@ -227,7 +227,7 @@ return baseclass.extend({ if (!table.lastElementChild) return null; - var assoclist = E('table', { 'class': 'table assoclist' }, [ + var assoclist = E('table', { 'class': 'table assoclist', 'id': 'wifi_assoclist_table' }, [ E('tr', { 'class': 'tr table-titles' }, [ E('th', { 'class': 'th nowrap' }, _('Network')), E('th', { 'class': 'th hide-xs' }, _('MAC address')), -- cgit v1.2.3