From 80b6a35c4a23417602e6f0fe39f67bb4b5bc4e7e Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Tue, 17 Jun 2014 17:25:32 +0400 Subject: [PATCH] fix issue #41 (correct loading posts in both timeline and profile modal) --- js/twister_actions.js | 1 + js/twister_timeline.js | 1 + 2 files changed, 2 insertions(+) diff --git a/js/twister_actions.js b/js/twister_actions.js index cb1734a..f473246 100644 --- a/js/twister_actions.js +++ b/js/twister_actions.js @@ -120,6 +120,7 @@ function requestPostRecursively(containerToAppend,username,resource,count) requestPostRecursively(args.containerToAppend, n, "post"+lastk, count-1); } else { profilePostsLoading = false; + args.containerToAppend.scroll(); } } }, {containerToAppend:containerToAppend, count:count} ); diff --git a/js/twister_timeline.js b/js/twister_timeline.js index 9bce94a..c36e661 100644 --- a/js/twister_timeline.js +++ b/js/twister_timeline.js @@ -211,6 +211,7 @@ function processReceivedPosts(req, posts) { req.mode = 'older'; requestGetposts(req); } + $(window).scroll(); } // request timeline update for a given list of users