diff --git a/public/assets/js/datatables-std.js b/public/assets/js/datatables-std.js index 6237d0ef2..505d293c1 100644 --- a/public/assets/js/datatables-std.js +++ b/public/assets/js/datatables-std.js @@ -63,6 +63,7 @@ table = $('#datatable').DataTable({ }, orderCellsTop: true, stateSave: true, + stateDuration: 60 * 60 * 24 * 30, "initComplete": function () { $('#datatable_filter').append(''); $('#clear_cookie').click(function () { diff --git a/public/js/pages/timerecording/index.js b/public/js/pages/timerecording/index.js index c2bf0611b..56f8dcc46 100644 --- a/public/js/pages/timerecording/index.js +++ b/public/js/pages/timerecording/index.js @@ -58,6 +58,7 @@ table = $('#datatable').DataTable({ }, orderCellsTop: true, stateSave: true, + stateDuration: 60 * 60 * 24 * 30, "initComplete": function () { $('#datatable_filter').append(''); $('#clear_cookie').click(function () { diff --git a/public/js/pages/timerecordingReport/index.js b/public/js/pages/timerecordingReport/index.js index 44307a3e7..76f10a64d 100644 --- a/public/js/pages/timerecordingReport/index.js +++ b/public/js/pages/timerecordingReport/index.js @@ -62,6 +62,7 @@ table = $('#datatable').DataTable({ }, orderCellsTop: true, stateSave: true, + stateDuration: 60 * 60 * 24 * 30, "initComplete": function () { $('#datatable_filter').append(''); $('#clear_cookie').click(function () {