Add activity.js, infinite scroll for notifications

This commit is contained in:
Daniel Supernault 2018-06-09 14:42:35 -06:00
parent bccd01b2dc
commit 0e316aabdc
4 changed files with 10 additions and 0 deletions

BIN
public/js/activity.js vendored Normal file

Binary file not shown.

BIN
public/js/timeline.js vendored

Binary file not shown.

Binary file not shown.

10
resources/assets/js/activity.js vendored Normal file
View 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,
});
});