mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Filter: namespace a variable
This commit is contained in:
parent
829d3792fa
commit
cc1d4904ba
@ -357,7 +357,7 @@
|
||||
c.$table.addClass( 'hasFilters' );
|
||||
|
||||
// define timers so using clearTimeout won't cause an undefined error
|
||||
wo.searchTimer = null;
|
||||
wo.filter_searchTimer = null;
|
||||
wo.filter_initTimer = null;
|
||||
wo.filter_formatterCount = 0;
|
||||
wo.filter_formatterInit = [];
|
||||
@ -769,10 +769,10 @@
|
||||
},
|
||||
searching: function( table, filter, skipFirst ) {
|
||||
var wo = table.config.widgetOptions;
|
||||
clearTimeout( wo.searchTimer );
|
||||
clearTimeout( wo.filter_searchTimer );
|
||||
if ( typeof filter === 'undefined' || filter === true ) {
|
||||
// delay filtering
|
||||
wo.searchTimer = setTimeout( function() {
|
||||
wo.filter_searchTimer = setTimeout( function() {
|
||||
tsf.checkFilters( table, filter, skipFirst );
|
||||
}, wo.filter_liveSearch ? wo.filter_searchDelay : 10 );
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user