mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-19 17: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:
parent
7138587212
commit
15c7628d1c
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -2313,7 +2313,7 @@
|
|||||||
*/
|
*/
|
||||||
function _fnInitalise ( oSettings )
|
function _fnInitalise ( oSettings )
|
||||||
{
|
{
|
||||||
var i, iLen;
|
var i, iLen, bDefer=oSettings.bDeferLoading;
|
||||||
|
|
||||||
/* Ensure that the table data is fully initialised */
|
/* Ensure that the table data is fully initialised */
|
||||||
if ( oSettings.bInitialised === false )
|
if ( oSettings.bInitialised === false )
|
||||||
@ -2361,7 +2361,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* if there is an ajax source load the data */
|
/* 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) {
|
oSettings.fnServerData.call( oSettings.oInstance, oSettings.sAjaxSource, [], function(json) {
|
||||||
/* Got the data - add it to the table */
|
/* Got the data - add it to the table */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user