Skip to content

Commit

Permalink
lower to 20
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroesb committed Nov 15, 2023
1 parent 397706c commit 6b9eb21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@
$('div.datatable-begin').nextUntil('div.datatable-end', 'table').addClass('display');
$('table.display').each(function() {
$(this).DataTable({
lengthMenu: [[25, 50, 100, -1], [25, 50, 100, "All"]],
lengthMenu: [[20, 50, 100, -1], [20, 50, 100, "All"]],
stateSave: true,
searching: true,
info: false,
pageLength: 25,
pageLength: 20,
language: {
searchPlaceholder: "Type here..."
},
"fnDrawCallback": function ( oSettings ){
var tableId = oSettings.nTable.id;
if(oSettings.fnRecordsTotal() < 25){
if(oSettings.fnRecordsTotal() < 20){
$('#'+tableId+'_length').hide();
$('#'+tableId+'_paginate').hide();
$('#'+tableId+'_filter').hide();
Expand Down

0 comments on commit 6b9eb21

Please sign in to comment.