3769: Add saveState to dataTables, add "∞" to page length r=mergify[bot] a=saschaludwig

## What type of PR?

enhancement

## What does this PR do?

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.

### Related issue(s)
none

## Prerequisites
considered as minor change, please notify, if not. Thanks


Co-authored-by: Sascha Ludwig <sascha@astrastudio.de>
Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>
This commit is contained in:
bors-mailu[bot]
2025-08-13 12:28:16 +00:00
committed by GitHub

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',
},