From 0e316aabdc9a8ab2d6234e037aaecccfa3df54fa Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 9 Jun 2018 14:42:35 -0600 Subject: [PATCH] Add activity.js, infinite scroll for notifications --- public/js/activity.js | Bin 0 -> 768 bytes public/js/timeline.js | Bin 790 -> 790 bytes public/mix-manifest.json | Bin 184 -> 250 bytes resources/assets/js/activity.js | 10 ++++++++++ 4 files changed, 10 insertions(+) create mode 100644 public/js/activity.js create mode 100644 resources/assets/js/activity.js diff --git a/public/js/activity.js b/public/js/activity.js new file mode 100644 index 0000000000000000000000000000000000000000..be031f9af83935221c80bb31e21aa3f8bdcc4cd9 GIT binary patch literal 768 zcmaJfb9R@g{}Ri#?jr zd-L9m*29DyS&y7V`fcJ0b;|9MTmknY*@5GC|3gHeDdMWe3SNVcG`1BIbxrAH8!uh6 z-pNa`NjbL{5LHlToa1r9$|$cfh;ndxy}jl#sAo+QRHw0gd%dXQBvBS!pnMI*+uOs_ zPv}VXFj$1I(Fce$pRT3O<6sX{G*1pr+HiV?%V{eQK#k8L7k<3qUq(Uq_oViF7{B;_ za`5S0fk=z5+SE*ra`TVkyZs`cqhy8^xe{wTf77lc7ru*=5IuRC1E`}JA6{_rbRJk?)ER+Dv`kwAXBaa5a&m5WfeXa2zs)E?M|Rg!NW>9JJRM5{S=sJ5nfiG z%XZKbJa*BS$3Zd$L&xT}-+qtqN=%v%0Q*w6eGjrL<37hb0Z}kE(IV^($6Z^PfRY!EXypZ)XOSX jvceFu&rGp3H!@C1OR}^`N=iz$G)uHhF}6%o;;IDzn`j+> delta 30 kcmeyxxPx)RLh-Z|bJNrmLm*{loSI}}U~Xn$uEbRf0HfOpKL7v# diff --git a/resources/assets/js/activity.js b/resources/assets/js/activity.js new file mode 100644 index 000000000..b1b72d1b8 --- /dev/null +++ b/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, + }); +});