mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-02-09 21:44:15 +00:00
fix from calm: (correct loading posts in both timeline and profile modal) fix #166
This commit is contained in:
parent
e5740cc206
commit
891f7bf24e
@ -168,6 +168,7 @@ function requestPostRecursively(containerToAppend,username,resource,count)
|
|||||||
requestPostRecursively(args.containerToAppend, n, "post"+lastk, count-1);
|
requestPostRecursively(args.containerToAppend, n, "post"+lastk, count-1);
|
||||||
} else {
|
} else {
|
||||||
profilePostsLoading = false;
|
profilePostsLoading = false;
|
||||||
|
args.containerToAppend.scroll();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
profilePostsLoading = false;
|
profilePostsLoading = false;
|
||||||
|
@ -204,6 +204,7 @@ function processReceivedPosts(req, posts)
|
|||||||
timelineLoaded = true;
|
timelineLoaded = true;
|
||||||
$.MAL.postboardLoaded();
|
$.MAL.postboardLoaded();
|
||||||
_refreshInProgress = false;
|
_refreshInProgress = false;
|
||||||
|
$(window).scroll();
|
||||||
} else {
|
} else {
|
||||||
//we will request more older post...
|
//we will request more older post...
|
||||||
req.count += postsPerRefresh;
|
req.count += postsPerRefresh;
|
||||||
@ -338,4 +339,4 @@ function willBeHidden(post){
|
|||||||
}
|
}
|
||||||
|
|
||||||
return hidden;
|
return hidden;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user