pixelfed/resources/assets/js/timeline.js

14 lines
380 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',
2018-06-05 06:38:48 +00:00
status: '.page-load-status',
2018-05-20 03:12:42 +00:00
history: false,
});
infScroll.on( 'append', function( response, path, items ) {
pixelfed.hydrateLikes();
});
2018-06-05 06:38:48 +00:00
});