mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 21:43:17 +00:00
Add JS for page messages
This commit is contained in:
parent
fca898e766
commit
cdc19d4419
1 changed files with 3 additions and 1 deletions
4
resources/assets/js/timeline.js
vendored
4
resources/assets/js/timeline.js
vendored
|
@ -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 a new issue