1
0
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:
Allan Jardine 2011-12-14 10:50:34 +00:00
parent c8c40189a2
commit 57cc9f1b2c
2 changed files with 10 additions and 6 deletions

View File

@ -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 );
}
};

View File

@ -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 );
}
};