From 493784da435179f98827f25cc89653686794996b Mon Sep 17 00:00:00 2001 From: Arinde Eniola Date: Wed, 20 Apr 2016 17:47:07 +0100 Subject: fix bug causing the infinite scrolling in activity feeds to break when you click a link and navigate back --- app/views/projects/_activity.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/views/projects') diff --git a/app/views/projects/_activity.html.haml b/app/views/projects/_activity.html.haml index 961b61d2e76..48b0dd6b121 100644 --- a/app/views/projects/_activity.html.haml +++ b/app/views/projects/_activity.html.haml @@ -9,4 +9,7 @@ = spinner :javascript - new Activities(); + var activity = new Activities(); + $(document).on('page:restore', function (event) { + activity.reloadActivities() + }) -- cgit v1.2.1