pixelfed/resources/assets/js/timeline.js

16 lines
448 B
JavaScript
Raw Normal View History

2018-05-20 03:12:42 +00:00
$(document).ready(function() {
$('.pagination').hide();
2018-06-05 06:38:48 +00:00
$('.page-load-status').show();
2018-05-20 03:12:42 +00:00
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 ) {
2018-06-05 07:48:19 +00:00
$('.page-load-status').show();
pixelfed.hydrateLikes();
});
2018-06-05 06:38:48 +00:00
});