From 91c63b8ad5f24b35f92240fd0f3f119a248008dd Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Sun, 15 Jan 2012 10:37:43 +0000 Subject: [PATCH] Fix: When a previous search column details is defined for column 0, it would fail incorrectly. Now fixed --- media/js/jquery.dataTables.js | 2 +- media/src/core/core.columns.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 0ceb94c0..09c1f696 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -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 ); } diff --git a/media/src/core/core.columns.js b/media/src/core/core.columns.js index 18b63038..e26a1268 100644 --- a/media/src/core/core.columns.js +++ b/media/src/core/core.columns.js @@ -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 ); }