datatables fix

This commit is contained in:
Walter Hupfeld
2024-03-16 11:44:26 +01:00
parent 6eb3594bcd
commit 852b45f125
2 changed files with 7 additions and 9 deletions

View File

@@ -100,7 +100,7 @@
<p>&nbsp;</p>
<h2>Liste der Einträge für <?=$strDistrictTitle?></h2>
<table id="list" class="table table-bordered table-striped">
<table id="list" class="display">
<thead>
<tr><th>Nr.</th><th>Name</th>
<?= ($boolUserinfo) ? "<th>Alter</th><th>Verkehrsmittel</th>" : ""; ?>
@@ -204,11 +204,9 @@ jQuery(document).ready(function(){
let dataTable = new DataTable(
"#list",
{
language: {
url: 'vendor/DataTables/de_DE.json'
}
});
{ language: {url: 'vendor/DataTables/de_DE.json'},
lengthMenu: [ [10, 25, 50, -1], [10, 25, 50, 'Alle'] ]
});
<?php