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,10 +15,16 @@
|
|||||||
$.event.special.scrollstop.latency = wo.lazyload_latency || 250;
|
$.event.special.scrollstop.latency = wo.lazyload_latency || 250;
|
||||||
}
|
}
|
||||||
ts.lazyload.update( c, wo );
|
ts.lazyload.update( c, wo );
|
||||||
var events = [ wo.lazyload_update, 'pagerUpdate', wo.columnSelector_updated || 'columnUpdate', '' ]
|
var namespace = c.namespace + 'lazyload ',
|
||||||
.join( c.namespace + 'lazyload ' );
|
events = [ wo.lazyload_update, 'pagerUpdate', wo.columnSelector_updated || 'columnUpdate', '' ]
|
||||||
c.$table.on( events, function() {
|
.join( namespace );
|
||||||
|
c.$table
|
||||||
|
.on( events, function() {
|
||||||
ts.lazyload.update( c, c.widgetOptions );
|
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 ) {
|
update : function( c, wo ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user