mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Filter: trigger filterFormatters after update. See #1237
This commit is contained in:
parent
04f23cebb5
commit
ff754c177e
2
dist/js/widgets/widget-filter.min.js
vendored
2
dist/js/widgets/widget-filter.min.js
vendored
File diff suppressed because one or more lines are too long
@ -437,6 +437,8 @@
|
||||
// force a new search since content has changed
|
||||
c.lastCombinedFilter = null;
|
||||
c.lastSearch = [];
|
||||
// update filterFormatters after update - Fixes #1237
|
||||
c.$table.triggerHandler( 'filterFomatterUpdate' );
|
||||
}
|
||||
// pass true ( skipFirst ) to prevent the tablesorter.setFilters function from skipping the first
|
||||
// input ensures all inputs are updated when a search is triggered on the table
|
||||
@ -601,8 +603,10 @@
|
||||
count = 0,
|
||||
completed = function() {
|
||||
wo.filter_initialized = true;
|
||||
// update lastSearch - it gets cleared often
|
||||
c.lastSearch = c.$table.data( 'lastSearch' );
|
||||
c.$table.triggerHandler( 'filterInit', c );
|
||||
tsf.findRows( c.table, c.$table.data( 'lastSearch' ) || [] );
|
||||
tsf.findRows( c.table, c.lastSearch || [] );
|
||||
};
|
||||
if ( $.isEmptyObject( wo.filter_formatter ) ) {
|
||||
completed();
|
||||
|
Loading…
Reference in New Issue
Block a user