mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-23 00:05:29 +00:00
Add activity.js, infinite scroll for notifications
This commit is contained in:
parent
bccd01b2dc
commit
0e316aabdc
4 changed files with 10 additions and 0 deletions
BIN
public/js/activity.js
vendored
Normal file
BIN
public/js/activity.js
vendored
Normal file
Binary file not shown.
BIN
public/js/timeline.js
vendored
BIN
public/js/timeline.js
vendored
Binary file not shown.
Binary file not shown.
10
resources/assets/js/activity.js
vendored
Normal file
10
resources/assets/js/activity.js
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
$(document).ready(function() {
|
||||
$('.pagination').hide();
|
||||
let elem = document.querySelector('.notification-page .list-group');
|
||||
let infScroll = new InfiniteScroll( elem, {
|
||||
path: '.pagination__next',
|
||||
append: '.notification-page .list-group',
|
||||
status: '.page-load-status',
|
||||
history: true,
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue