Update Admin user datatables to use AJAX

This commit is contained in:
James Mason 2018-06-18 10:04:17 -07:00 committed by Henne Vogelsang
parent 600e394cf8
commit 64ceaf50f4
6 changed files with 290 additions and 53 deletions

View file

@ -1,9 +1,11 @@
$(function () {
$('.datatable').DataTable({
// ajax: ...,
stateSave: true,
autoWidth: false,
pagingType: 'full_numbers',
$.extend(true, $.fn.dataTable.defaults, {
"stateSave": true,
"autoWidth": false,
"pagingType": "full_numbers",
"lengthMenu": [[25, 50, 100, -1], [25, 50, 100, "All"]],
});
$('.datatable:not([data-source])').DataTable();
});