mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Sort2Hash: Compare hash filter
This commit is contained in:
parent
56e6e70a76
commit
243205c513
@ -30,12 +30,12 @@
|
||||
$(this).triggerHandler( 'pageAndSize', [ page, size ] );
|
||||
});
|
||||
// use the newest filter comparison code
|
||||
if (ts.filter.equalFilters) {
|
||||
temp = ts.filter.equalFilters(c, c.lastSearch, pager.currentFilters);
|
||||
if ( ts.filter.equalFilters ) {
|
||||
temp = ts.filter.equalFilters( c, c.lastSearch, filter );
|
||||
} else {
|
||||
// quick n' dirty comparison... it will miss filter changes of
|
||||
// the same value in a different column, see #1363
|
||||
temp = ( c.lastSearch || [] ).join( '' ) !== ( pager.currentFilters || [] ).join( '' );
|
||||
temp = ( c.lastSearch || [] ).join( '' ) !== ( filter || [] ).join( '' );
|
||||
}
|
||||
// don't set filters if they haven't changed
|
||||
if ( !temp ) {
|
||||
|
Loading…
Reference in New Issue
Block a user