Commit 7b8864da authored by Nicolas Widart's avatar Nicolas Widart

Using the new datatables syntax

parent af2f4aea
...@@ -102,19 +102,20 @@ ...@@ -102,19 +102,20 @@
<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {
$('.data-table').dataTable({ $('.data-table').dataTable({
"bPaginate": true, "paginate": true,
"bLengthChange": true, "lengthChange": true,
"bFilter": true, "filter": true,
"bSort": true, "sort": true,
"bInfo": true, "info": true,
"bAutoWidth": true, "autoWidth": true,
"oLanguage": { "order": [[ 0, "asc" ]],
"sUrl": '<?php echo Module::asset('core', "js/vendor/datatables/{$locale}.json") ?>' "language": {
"url": '<?php echo Module::asset('core', "js/vendor/datatables/{$locale}.json") ?>'
}, },
"aoColumns": [ "columns": [
null, null,
null, null,
{ "bSortable": false } { "sortable": false }
] ]
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment