mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Hide page status loader until its finished
This commit is contained in:
parent
8194432073
commit
40b1f61611
5 changed files with 2 additions and 4 deletions
BIN
public/js/timeline.js
vendored
BIN
public/js/timeline.js
vendored
Binary file not shown.
Binary file not shown.
2
resources/assets/js/timeline.js
vendored
2
resources/assets/js/timeline.js
vendored
|
@ -1,6 +1,5 @@
|
|||
$(document).ready(function() {
|
||||
$('.pagination').hide();
|
||||
$('.page-load-status').show();
|
||||
let elem = document.querySelector('.timeline-feed');
|
||||
let infScroll = new InfiniteScroll( elem, {
|
||||
path: '.pagination__next',
|
||||
|
@ -9,7 +8,6 @@ $(document).ready(function() {
|
|||
history: false,
|
||||
});
|
||||
infScroll.on( 'append', function( response, path, items ) {
|
||||
$('.page-load-status').show();
|
||||
pixelfed.hydrateLikes();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
<div class="page-load-status">
|
||||
<div class="infinite-scroll-request">
|
||||
<div class="fixed-top loading-page"></div>
|
||||
<div class="d-none fixed-top loading-page"></div>
|
||||
</div>
|
||||
<div class="infinite-scroll-last">
|
||||
<h3>No more content</h3>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
<div class="page-load-status">
|
||||
<div class="infinite-scroll-request">
|
||||
<div class="fixed-top loading-page"></div>
|
||||
<div class="d-none fixed-top loading-page"></div>
|
||||
</div>
|
||||
<div class="infinite-scroll-last">
|
||||
<h3>No more content</h3>
|
||||
|
|
Loading…
Reference in a new issue