mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-12 10:54:14 +01:00
Fix: aoPreSearchCols can be given as null if you want to deinfe multiple columns - doing so would have resulted in an error. Fixed (unit test)
This commit is contained in:
parent
5c9ec489c6
commit
9fb4492053
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -81,7 +81,7 @@
|
|||||||
oSettings.aoColumns.push( oCol );
|
oSettings.aoColumns.push( oCol );
|
||||||
|
|
||||||
/* Add a column specific filter */
|
/* Add a column specific filter */
|
||||||
if ( oSettings.aoPreSearchCols[ iCol ] === undefined )
|
if ( oSettings.aoPreSearchCols[ iCol ] === undefined || oSettings.aoPreSearchCols[ iCol ] === null )
|
||||||
{
|
{
|
||||||
oSettings.aoPreSearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch );
|
oSettings.aoPreSearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch );
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ function _fnAddColumn( oSettings, nTh )
|
|||||||
oSettings.aoColumns.push( oCol );
|
oSettings.aoColumns.push( oCol );
|
||||||
|
|
||||||
/* Add a column specific filter */
|
/* Add a column specific filter */
|
||||||
if ( oSettings.aoPreSearchCols[ iCol ] === undefined )
|
if ( oSettings.aoPreSearchCols[ iCol ] === undefined || oSettings.aoPreSearchCols[ iCol ] === null )
|
||||||
{
|
{
|
||||||
oSettings.aoPreSearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch );
|
oSettings.aoPreSearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user