1
0
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:
Allan Jardine 2012-10-05 22:43:15 -07:00
commit 65cde4c612

View File

@ -1,5 +1,4 @@
/** /**
* Update the table using an Ajax call * Update the table using an Ajax call
* @param {object} oSettings dataTables settings object * @param {object} oSettings dataTables settings object
@ -139,8 +138,7 @@ function _fnAjaxUpdateDraw ( oSettings, json )
} }
} }
if ( !oSettings.oScroll.bInfinite || if ( !oSettings.oScroll.bInfinite || oSettings.bSorted || oSettings.bFiltered )
(oSettings.oScroll.bInfinite && (oSettings.bSorted || oSettings.bFiltered)) )
{ {
_fnClearTable( oSettings ); _fnClearTable( oSettings );
} }