mirror of
https://github.com/DataTables/DataTables.git
synced 2025-03-15 16:29:16 +01:00
Merge pull request #120 from timtucker/patch-31
Dev: Simplify Ajax condition
This commit is contained in:
commit
65cde4c612
@ -1,5 +1,4 @@
|
||||
|
||||
|
||||
/**
|
||||
* Update the table using an Ajax call
|
||||
* @param {object} oSettings dataTables settings object
|
||||
@ -139,8 +138,7 @@ function _fnAjaxUpdateDraw ( oSettings, json )
|
||||
}
|
||||
}
|
||||
|
||||
if ( !oSettings.oScroll.bInfinite ||
|
||||
(oSettings.oScroll.bInfinite && (oSettings.bSorted || oSettings.bFiltered)) )
|
||||
if ( !oSettings.oScroll.bInfinite || oSettings.bSorted || oSettings.bFiltered )
|
||||
{
|
||||
_fnClearTable( oSettings );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user