mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-18 16:54:14 +01:00
Dev fix: Oops - inverted logic for column filter definitions
This commit is contained in:
parent
1e7f3066f9
commit
80472cdd13
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -81,7 +81,7 @@
|
||||
oSettings.aoColumns.push( oCol );
|
||||
|
||||
/* Add a column specific filter */
|
||||
if ( oSettings.aoPreSearchCols[ iCol ] !== undefined )
|
||||
if ( oSettings.aoPreSearchCols[ iCol ] === undefined )
|
||||
{
|
||||
oSettings.aoPreSearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch );
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ function _fnAddColumn( oSettings, nTh )
|
||||
oSettings.aoColumns.push( oCol );
|
||||
|
||||
/* Add a column specific filter */
|
||||
if ( oSettings.aoPreSearchCols[ iCol ] !== undefined )
|
||||
if ( oSettings.aoPreSearchCols[ iCol ] === undefined )
|
||||
{
|
||||
oSettings.aoPreSearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user