Add saveState to dataTables, add "∞" to page length

Add saveState to dataTables, so that the selected page length and sort direction(s) will be saved for the individual tables.
Add "∞" option to the page length menu to display all table entries.
This commit is contained in:
Sascha Ludwig
2025-02-18 12:25:35 +01:00
committed by GitHub
parent 9223472520
commit c9e0782261

View File

@@ -111,6 +111,8 @@ $('document').ready(function() {
var d = $(document.documentElement);
$('.dataTable').DataTable({
'responsive': true,
'stateSave': true,
'lengthMenu': [[10, 25, 50, 75, 100, -1], [10, 25, 50, 75, 100, '∞']],
language: {
url: d.data('static') + d.attr('lang') + '.json',
},