This is my table:
When I browse through pagination and then refresh the page, the page that I was on is saved. However, if I reload a second time, the state is lost. What could possibly be the issue?
Edit: Actually it appears to save the state more than once (sometimes), but if you continue to refresh, the state will eventually be lost. Basically, it's random if the state is saved or not.
var tablePending = $('#table-pending').dataTable({ "sDom": "<'row'<'span6'l><'span6'f>r>t<'row'<'span6'i><'span6'p>>", "sAjaxSource": "http://[redacted]/json/record/pending", "bDeferRender": true, "aoColumns": [ { "mData": "record_id" }, { "mData": "location" }, { "mData": "user", "mRender": function ( data, type, full ) { if (full["user_id"] === [redacted]) { return '<span class="label label-info">' + data + '</span>'; } return data; }}, { "mData": "date" }, { "mData": "time", "sClass": "nowrap" }, { "mData": "category" }, { "mData": "commodity" }, { "mData": "variety" } ], "iDisplayLength": 10, "bLengthChange": false, "bFilter": false, "bSort": false, "sPaginationType": "bootstrap", "bAutoWidth": true, "oLanguage": { "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries over the last 12 months" }, "bStateSave": true });
When I browse through pagination and then refresh the page, the page that I was on is saved. However, if I reload a second time, the state is lost. What could possibly be the issue?
Edit: Actually it appears to save the state more than once (sometimes), but if you continue to refresh, the state will eventually be lost. Basically, it's random if the state is saved or not.