1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-01-18 11:52:11 +01:00

Fix: When a previous search column details is defined for column 0, it would fail incorrectly. Now fixed

This commit is contained in:
Allan Jardine 2012-01-15 10:37:43 +00:00
parent acec127c9a
commit 91c63b8ad5
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@
oSettings.aoColumns.push( oCol );
/* Add a column specific filter */
if ( !oSettings.aoPreSearchCols[ iCol ] )
if ( oSettings.aoPreSearchCols[ iCol ] !== undefined )
{
oSettings.aoPreSearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch );
}

View File

@ -21,7 +21,7 @@ function _fnAddColumn( oSettings, nTh )
oSettings.aoColumns.push( oCol );
/* Add a column specific filter */
if ( !oSettings.aoPreSearchCols[ iCol ] )
if ( oSettings.aoPreSearchCols[ iCol ] !== undefined )
{
oSettings.aoPreSearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch );
}