Change sended list to use server side datatable

This commit is contained in:
osaajani 2021-07-14 04:38:52 +02:00
parent 30386f8caf
commit 170a00e30a
4 changed files with 85 additions and 21 deletions

View file

@ -69,7 +69,7 @@ jQuery(document).ready(function ()
{
jQuery('.datatable').DataTable({
"pageLength": 25,
"lengthMenu": [[25, 50, 100, 1000, 10000, -1], [25, 50, 100, 1000, 10000, "All"]],
"lengthMenu": [[25, 50, 100, 1000, 10000, -1], [25, 50, 100, 1000, 10000]],
"language": {
"url": HTTP_PWD + "/assets/js/datatables/french.json",
},
@ -77,7 +77,7 @@ jQuery(document).ready(function ()
'targets': 'checkcolumn',
'orderable': false,
}],
"serverSide": true,
"ajax": {
'url': '<?php echo \descartes\Router::url('Sended', 'list_json'); ?>',
'dataSrc': 'data',