From 4a67e95da54090c1148ca56594b31fdaeb0c8393 Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Tue, 17 Jun 2014 17:31:35 +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..873d1b9 100644 --- a/js/twister_timeline.js +++ b/js/twister_timeline.js @@ -205,6 +205,7 @@ function processReceivedPosts(req, posts) { timelineLoaded = true; $.MAL.postboardLoaded(); _refreshInProgress = false; + $(window).scroll(); } else { //we will request more older post... req.count += postsPerRefresh;