mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Pager (addon): ensure ajax is called after filter widget init. Fixes #1389
This commit is contained in:
parent
23c94a726d
commit
31e2376eb6
@ -969,6 +969,10 @@
|
||||
.bind('filterInit filterStart '.split(' ').join(namespace + ' '), function(e, filters) {
|
||||
p.currentFilters = $.isArray(filters) ? filters : c.$table.data('lastSearch');
|
||||
var filtersEqual;
|
||||
if (p.ajax && e.type === 'filterInit') {
|
||||
// ensure pager ajax is called after filter widget has initialized
|
||||
return moveToPage( table, p, false );
|
||||
}
|
||||
if (ts.filter.equalFilters) {
|
||||
filtersEqual = ts.filter.equalFilters(c, c.lastSearch, p.currentFilters);
|
||||
} else {
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user