mirror of https://github.com/pixelfed/pixelfed
Add JS for page messages
parent
fca898e766
commit
cdc19d4419
@ -1,12 +1,14 @@
|
||||
$(document).ready(function() {
|
||||
$('.pagination').hide();
|
||||
$('.page-load-status').show();
|
||||
let elem = document.querySelector('.timeline-feed');
|
||||
let infScroll = new InfiniteScroll( elem, {
|
||||
path: '.pagination__next',
|
||||
append: '.timeline-feed',
|
||||
status: '.page-load-status',
|
||||
history: false,
|
||||
});
|
||||
infScroll.on( 'append', function( response, path, items ) {
|
||||
pixelfed.hydrateLikes();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue