Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions themes/puma/assets/js/tiger.datatable.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,15 @@
var extra = (typeof opts.extraData === 'function') ? opts.extraData : function () { return {}; };

// Sensible defaults; caller's opts win. `service`/`extraData` are ours, not DT's.
// stateSave persists page / length / search / order per grid (localStorage, keyed by table id +
// path) so a grid remembers where you were across reloads + navigation. A caller can opt out with
// `stateSave: false`. stateDuration 0 = keep until explicitly changed (no time-based expiry).
var config = $.extend({
serverSide: true,
processing: true,
pageLength: 25,
stateSave: true,
stateDuration: 0,
language: { search: '', searchPlaceholder: 'Search…' }
}, opts);
delete config.service;
Expand Down
Loading