mirror of
https://github.com/DataTables/DataTables.git
synced 2024-11-29 11:24:10 +01:00
Fix: Don't rebuild the client-side search array when using server-side processing since it isn't used! - 5742
This commit is contained in:
parent
9a1fddf79b
commit
8a7c5c938e
21
media/js/jquery.dataTables.js
vendored
21
media/js/jquery.dataTables.js
vendored
@ -4476,16 +4476,19 @@
|
||||
*/
|
||||
function _fnBuildSearchArray ( oSettings, iMaster )
|
||||
{
|
||||
/* Clear out the old data */
|
||||
oSettings.asDataSearch.splice( 0, oSettings.asDataSearch.length );
|
||||
|
||||
var aArray = (typeof iMaster != 'undefined' && iMaster == 1) ?
|
||||
oSettings.aiDisplayMaster : oSettings.aiDisplay;
|
||||
|
||||
for ( var i=0, iLen=aArray.length ; i<iLen ; i++ )
|
||||
if ( !oSettings.oFeatures.bServerSide )
|
||||
{
|
||||
oSettings.asDataSearch[i] = _fnBuildSearchRow( oSettings,
|
||||
_fnGetRowData( oSettings, aArray[i], 'filter' ) );
|
||||
/* Clear out the old data */
|
||||
oSettings.asDataSearch.splice( 0, oSettings.asDataSearch.length );
|
||||
|
||||
var aArray = (typeof iMaster != 'undefined' && iMaster == 1) ?
|
||||
oSettings.aiDisplayMaster : oSettings.aiDisplay;
|
||||
|
||||
for ( var i=0, iLen=aArray.length ; i<iLen ; i++ )
|
||||
{
|
||||
oSettings.asDataSearch[i] = _fnBuildSearchRow( oSettings,
|
||||
_fnGetRowData( oSettings, aArray[i], 'filter' ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user