Skip to content

Commit

Permalink
Force text renderen in datatables
Browse files Browse the repository at this point in the history
  • Loading branch information
bochoven committed Mar 4, 2020
1 parent 7a654b7 commit e725b9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion views/batteries_listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

$('.table th').map(function(){

columnDefs.push({name: $(this).data('colname'), targets: col});
columnDefs.push({name: $(this).data('colname'), targets: col, render: $.fn.dataTable.render.text()});

if($(this).data('sort')){
mySort.push([col, $(this).data('sort')])
Expand Down
2 changes: 1 addition & 1 deletion views/power_listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

$('.table th').map(function(){

columnDefs.push({name: $(this).data('colname'), targets: col});
columnDefs.push({name: $(this).data('colname'), targets: col, render: $.fn.dataTable.render.text()});

if($(this).data('sort')){
mySort.push([col, $(this).data('sort')])
Expand Down

0 comments on commit e725b9e

Please sign in to comment.