1
0
Эх сурвалжийг харах

Add activity.js, infinite scroll for notifications

Daniel Supernault 7 жил өмнө
parent
commit
0e316aabdc

BIN
public/js/activity.js


BIN
public/js/timeline.js


BIN
public/mix-manifest.json


+ 10 - 0
resources/assets/js/activity.js

@@ -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,
+  });
+});