fix issue #41 (correct loading posts in both timeline and profile modal)

This commit is contained in:
Denis Ryabov 2014-06-17 17:31:35 +04:00
parent eedeececa5
commit 4a67e95da5
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -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;