summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/htdocs/luci-static/resources/view/status
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2023-10-19 23:44:53 +0200
committerJo-Philipp Wich <jo@mein.io>2023-10-19 23:46:03 +0200
commit603992560c5ca4b5929047e8e8c70f901f75d7f7 (patch)
treeefb3b46a14ccfba8887fd4010219fcb9fcf8ec59 /modules/luci-mod-status/htdocs/luci-static/resources/view/status
parentee6a4da00b70949eccb5a0a7b69d2c5b98ef1f89 (diff)
luci-mod-status: persist sorting of DHCP lease status tables
Add an ID attribute to the dynamically generated lease status tables to persist row ordering choice across reloads. Fixes: #6640 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-status/htdocs/luci-static/resources/view/status')
-rw-r--r--modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js
index 956c1b20f9..4c52916423 100644
--- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js
+++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js
@@ -82,7 +82,7 @@ return baseclass.extend({
}
};
- var table = E('table', { 'class': 'table lases' }, [
+ var table = E('table', { 'id': 'status_leases', 'class': 'table lases' }, [
E('tr', { 'class': 'tr table-titles' }, [
E('th', { 'class': 'th' }, _('Hostname')),
E('th', { 'class': 'th' }, _('IPv4 address')),
@@ -129,7 +129,7 @@ return baseclass.extend({
return rows;
}, this)), E('em', _('There are no active leases')));
- var table6 = E('table', { 'class': 'table leases6' }, [
+ var table6 = E('table', { 'id': 'status_leases6', 'class': 'table leases6' }, [
E('tr', { 'class': 'tr table-titles' }, [
E('th', { 'class': 'th' }, _('Host')),
E('th', { 'class': 'th' }, _('IPv6 address')),