mirror of
https://github.com/DataTables/DataTables.git
synced 2024-12-01 13:24:10 +01:00
Small tidy up of how the column filter state is saved
This commit is contained in:
parent
c8c40189a2
commit
57cc9f1b2c
8
media/js/jquery.dataTables.js
vendored
8
media/js/jquery.dataTables.js
vendored
@ -5274,9 +5274,11 @@
|
||||
else
|
||||
{
|
||||
/* Single column filter */
|
||||
oSettings.aoPreSearchCols[ iColumn ].sSearch = sInput+"";
|
||||
oSettings.aoPreSearchCols[ iColumn ].bRegex = bRegex;
|
||||
oSettings.aoPreSearchCols[ iColumn ].bSmart = bSmart;
|
||||
$.extend( oSettings.aoPreSearchCols[ iColumn ], {
|
||||
"sSearch": sInput+"",
|
||||
"bRegex": bRegex,
|
||||
"bSmart": bSmart
|
||||
} );
|
||||
_fnFilterComplete( oSettings, oSettings.oPreviousSearch, 1 );
|
||||
}
|
||||
};
|
||||
|
@ -568,9 +568,11 @@ this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal )
|
||||
else
|
||||
{
|
||||
/* Single column filter */
|
||||
oSettings.aoPreSearchCols[ iColumn ].sSearch = sInput+"";
|
||||
oSettings.aoPreSearchCols[ iColumn ].bRegex = bRegex;
|
||||
oSettings.aoPreSearchCols[ iColumn ].bSmart = bSmart;
|
||||
$.extend( oSettings.aoPreSearchCols[ iColumn ], {
|
||||
"sSearch": sInput+"",
|
||||
"bRegex": bRegex,
|
||||
"bSmart": bSmart
|
||||
} );
|
||||
_fnFilterComplete( oSettings, oSettings.oPreviousSearch, 1 );
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user