mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Lazyload: trigger lazyload after filtering. Fixes #1169
This commit is contained in:
parent
1547da983e
commit
fe33ed9d60
@ -15,11 +15,17 @@
|
||||
$.event.special.scrollstop.latency = wo.lazyload_latency || 250;
|
||||
}
|
||||
ts.lazyload.update( c, wo );
|
||||
var events = [ wo.lazyload_update, 'pagerUpdate', wo.columnSelector_updated || 'columnUpdate', '' ]
|
||||
.join( c.namespace + 'lazyload ' );
|
||||
c.$table.on( events, function() {
|
||||
ts.lazyload.update( c, c.widgetOptions );
|
||||
});
|
||||
var namespace = c.namespace + 'lazyload ',
|
||||
events = [ wo.lazyload_update, 'pagerUpdate', wo.columnSelector_updated || 'columnUpdate', '' ]
|
||||
.join( namespace );
|
||||
c.$table
|
||||
.on( events, function() {
|
||||
ts.lazyload.update( c, c.widgetOptions );
|
||||
})
|
||||
.on( 'filterEnd' + namespace, function() {
|
||||
// give lazyload a nudge after filtering the table. Fixes #1169
|
||||
$(window).scroll();
|
||||
});
|
||||
},
|
||||
update : function( c, wo ) {
|
||||
// add '.' if not already included
|
||||
|
Loading…
Reference in New Issue
Block a user