We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd405d commit cd44c3fCopy full SHA for cd44c3f
src/views/log.blade.php
@@ -96,12 +96,20 @@
96
<script>
97
$(document).ready(function(){
98
$('#table-log').DataTable({
99
- "order": [ 1, 'desc' ]
+ "order": [ 1, 'desc' ],
100
+ "stateSave": true,
101
+ "stateSaveCallback": function (settings, data) {
102
+ window.localStorage.setItem("datatable", JSON.stringify(data));
103
+ },
104
+ "stateLoadCallback": function (settings) {
105
+ var data = JSON.parse(window.localStorage.getItem("datatable"));
106
+ data.start = 0;
107
+ return data;
108
+ }
109
});
110
$('.table-container').on('click', '.expand', function(){
111
$('#' + $(this).data('display')).toggle();
112
-
113
114
</script>
115
</body>
0 commit comments