1
0
Fork 0
forked from mirror/pixelfed
pixelfed/resources/assets/js/timeline.js

12 lines
346 B
JavaScript
Raw Normal View History

2018-05-20 03:12:42 +00:00
$(document).ready(function() {
$('.pagination').hide();
let elem = document.querySelector('.timeline-feed');
let infScroll = new InfiniteScroll( elem, {
path: '.pagination__next',
append: '.timeline-feed',
history: false,
});
infScroll.on( 'append', function( response, path, items ) {
pixelfed.hydrateLikes();
});
2018-05-20 03:12:42 +00:00
});