mirror of
https://github.com/DataTables/DataTables.git
synced 2025-03-02 03:29:14 +01:00
Fix: Cast fnFilter input to a string always - since we are always going to treat it as a string
This commit is contained in:
parent
2928326042
commit
30e018f398
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -5056,7 +5056,7 @@
|
||||
{
|
||||
/* Global filter */
|
||||
_fnFilterComplete( oSettings, {
|
||||
"sSearch":sInput,
|
||||
"sSearch":sInput+"",
|
||||
"bRegex": bRegex,
|
||||
"bSmart": bSmart
|
||||
}, 1 );
|
||||
@ -5073,7 +5073,7 @@
|
||||
else
|
||||
{
|
||||
/* Single column filter */
|
||||
oSettings.aoPreSearchCols[ iColumn ].sSearch = sInput;
|
||||
oSettings.aoPreSearchCols[ iColumn ].sSearch = sInput+"";
|
||||
oSettings.aoPreSearchCols[ iColumn ].bRegex = bRegex;
|
||||
oSettings.aoPreSearchCols[ iColumn ].bSmart = bSmart;
|
||||
_fnFilterComplete( oSettings, oSettings.oPreviousSearch, 1 );
|
||||
|
@ -472,7 +472,7 @@ this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal )
|
||||
{
|
||||
/* Global filter */
|
||||
_fnFilterComplete( oSettings, {
|
||||
"sSearch":sInput,
|
||||
"sSearch":sInput+"",
|
||||
"bRegex": bRegex,
|
||||
"bSmart": bSmart
|
||||
}, 1 );
|
||||
@ -489,7 +489,7 @@ this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal )
|
||||
else
|
||||
{
|
||||
/* Single column filter */
|
||||
oSettings.aoPreSearchCols[ iColumn ].sSearch = sInput;
|
||||
oSettings.aoPreSearchCols[ iColumn ].sSearch = sInput+"";
|
||||
oSettings.aoPreSearchCols[ iColumn ].bRegex = bRegex;
|
||||
oSettings.aoPreSearchCols[ iColumn ].bSmart = bSmart;
|
||||
_fnFilterComplete( oSettings, oSettings.oPreviousSearch, 1 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user