Skip to content

Commit

Permalink
update DataTables to v2.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroesb committed Aug 23, 2024
1 parent 38d96f9 commit 9572829
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@
language: {
searchPlaceholder: "Type here..."
},
"fnDrawCallback": function ( oSettings ){
var tableId = oSettings.nTable.id;
if(oSettings.fnRecordsTotal() < 10){
$('#'+tableId+'_length').hide();
$('#'+tableId+'_paginate').hide();
$('#'+tableId+'_filter').hide();
$('#'+tableId+'_info').hide();
"drawCallback": function ( settings ){
var tableId = settings.nTable.id;
if(settings.fnRecordsTotal() < 10){
$('#'+tableId+'_wrapper .dt-length').hide();
$('#'+tableId+'_wrapper .dt-paging').hide();
$('#'+tableId+'_wrapper .dt-search').hide();
$('#'+tableId+'_wrapper .dt-info').hide();
}
}
});
Expand Down
Loading

0 comments on commit 9572829

Please sign in to comment.