Skip to content

Commit

Permalink
Adjusted footer
Browse files Browse the repository at this point in the history
  • Loading branch information
73616e646572 committed Nov 5, 2024
1 parent 6b70dcf commit e63804a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/page.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@
$('#fair-table').DataTable({
pageLength: 50,
dom: '<"top"lf>rt<"bottom"ip><"clear">',
infoCallback: function(settings, start, end, max, total, pre) {
return 'Showing ' + start + ' to ' + end + ' of ' + total + ' entries';
},
drawCallback: function(settings) {
var api = this.api();
$('#table-info').html(api.page.info().recordsDisplay + ' entries');
$('#table-info').html(api.table().container().querySelector('.dataTables_info').innerHTML);
$('#table-pagination').html($(api.table().container()).find('.dataTables_paginate'));
}
});
Expand Down

0 comments on commit e63804a

Please sign in to comment.