mirror of
https://github.com/outbackdingo/Mailu.git
synced 2026-01-27 10:19:35 +00:00
Merge #3769
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:
@@ -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',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user