1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-17 15:54:14 +01:00

New: Extend the new defered loading option to consider Ajax sourced data without server-side processing.

This commit is contained in:
Allan Jardine 2011-03-17 19:00:57 +00:00
parent 7138587212
commit 15c7628d1c

View File

@ -2313,7 +2313,7 @@
*/
function _fnInitalise ( oSettings )
{
var i, iLen;
var i, iLen, bDefer=oSettings.bDeferLoading;
/* Ensure that the table data is fully initialised */
if ( oSettings.bInitialised === false )
@ -2361,7 +2361,7 @@
}
/* if there is an ajax source load the data */
if ( oSettings.sAjaxSource !== null && !oSettings.oFeatures.bServerSide )
if ( oSettings.sAjaxSource !== null && !oSettings.oFeatures.bServerSide && !bDefer )
{
oSettings.fnServerData.call( oSettings.oInstance, oSettings.sAjaxSource, [], function(json) {
/* Got the data - add it to the table */