1.7.03 Datatables.net save state

This commit is contained in:
Fred Tempez 2024-03-12 12:42:29 +01:00
parent 2dd835593a
commit e64e819d48
5 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,7 @@ $(document).ready(function () {
url: "core/vendor/datatables/french.json" url: "core/vendor/datatables/french.json"
}, },
locale: 'fr', locale: 'fr',
stateSave: true,
"columnDefs": [ "columnDefs": [
{ {
target: 2, target: 2,

View File

@ -28,6 +28,7 @@ $(document).ready((function () {
}, },
order: [[3, 'desc']], order: [[3, 'desc']],
locale: 'fr', locale: 'fr',
stateSave: true,
"columnDefs": [ "columnDefs": [
{ {
target: 6, target: 6,

View File

@ -27,11 +27,12 @@ $(document).ready((function () {
$("#courseUsersAddForm").submit(); $("#courseUsersAddForm").submit();
}); });
var table = $('#dataTables').DataTable({ v$('#dataTables').DataTable({ar table =
language: { language: {
url: "core/vendor/datatables/french.json" url: "core/vendor/datatables/french.json"
}, },
locale: 'fr', locale: 'fr',
stateSave: true,
"columnDefs": [ "columnDefs": [
{ {
target: 0, target: 0,

View File

@ -19,6 +19,7 @@ $('#dataTables').DataTable({
url: "core/vendor/datatables/french.json", url: "core/vendor/datatables/french.json",
}, },
locale: 'fr', locale: 'fr',
stateSave: true,
"columnDefs": [{ "columnDefs": [{
target: 5, target: 5,
orderable: false, orderable: false,

View File

@ -28,6 +28,7 @@ $(document).ready((function () {
url: "core/vendor/datatables/french.json" url: "core/vendor/datatables/french.json"
}, },
locale: 'fr', locale: 'fr',
stateSave: true,
"columnDefs": [ "columnDefs": [
{ {
target: 5, target: 5,