fix from calm: (correct loading posts in both timeline and profile modal) fix #166

This commit is contained in:
Miguel Freitas 2014-07-04 08:25:30 -03:00
parent e5740cc206
commit 891f7bf24e
2 changed files with 3 additions and 1 deletions

View File

@ -168,6 +168,7 @@ function requestPostRecursively(containerToAppend,username,resource,count)
requestPostRecursively(args.containerToAppend, n, "post"+lastk, count-1);
} else {
profilePostsLoading = false;
args.containerToAppend.scroll();
}
} else {
profilePostsLoading = false;

View File

@ -204,6 +204,7 @@ function processReceivedPosts(req, posts)
timelineLoaded = true;
$.MAL.postboardLoaded();
_refreshInProgress = false;
$(window).scroll();
} else {
//we will request more older post...
req.count += postsPerRefresh;
@ -338,4 +339,4 @@ function willBeHidden(post){
}
return hidden;
}
}