add global datatables configuration, fixes #525, fixes #572

This commit is contained in:
Thomas Steen Rasmussen 2020-08-03 23:08:55 +02:00
parent 0dfd3379c5
commit 778eb2d90c

View file

@ -12,8 +12,11 @@ $(document).ready(function(){
$.fn.dataTable.moment( "dddd, MMM Do, YYYY, HH:mm" );
// enable datatables for all tables on the page,
$('.datatable').DataTable();
$('.datatable').DataTable( {
"stateSave": true,
"pageLength": 100,
"lengthMenu": [ [10, 25, 50, 100, -1], [10, 25, 50, 100, "All"] ],
} );
} );
// function used in speakeravailability form tables to toggle background color