Change default page length to 25 and save state in DataTables tables
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
$(document).ready(function() {
|
||||
var table = $('#da-data-table').dataTable({
|
||||
"deferRender": true,
|
||||
"stateSave": true,
|
||||
"pageLength": 25,
|
||||
"data": [% results %],
|
||||
"columns": [
|
||||
|
||||
@@ -383,6 +383,7 @@ $(document).ready(function() {
|
||||
{ "type": 'natural', "targets": [ 'natural' ] }
|
||||
],
|
||||
"order": [[ 1, 'asc' ]],
|
||||
"stateSave": true,
|
||||
"pageLength": 25,
|
||||
} );
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user