MCPcopy Create free account
hub / github.com/breck7/scroll / _fnStart

Function _fnStart

external/.datatables.js:3748–3758  ·  view source on GitHub ↗

* Set the start position for draw * @param {object} oSettings dataTables settings object

(oSettings)

Source from the content-addressed store, hash-verified

3746 * @param {object} oSettings dataTables settings object
3747 */
3748 function _fnStart(oSettings) {
3749 var bServerSide = _fnDataSource(oSettings) == "ssp"
3750 var iInitDisplayStart = oSettings.iInitDisplayStart
3751
3752 // Check and see if we have an initial draw position from state saving
3753 if (iInitDisplayStart !== undefined && iInitDisplayStart !== -1) {
3754 oSettings._iDisplayStart = bServerSide ? iInitDisplayStart : iInitDisplayStart >= oSettings.fnRecordsDisplay() ? 0 : iInitDisplayStart
3755
3756 oSettings.iInitDisplayStart = -1
3757 }
3758 }
3759
3760 /**
3761 * Create an Ajax call based on the table's settings, taking into account that

Callers 1

_fnDrawFunction · 0.85

Calls 1

_fnDataSourceFunction · 0.85

Tested by

no test coverage detected