mirror of
https://github.com/twisterarmy/twister-calm.git
synced 2025-01-12 16:07:58 +00:00
fix issue #41 (correct loading posts in both timeline and profile modal)
This commit is contained in:
parent
eedeececa5
commit
4a67e95da5
@ -120,6 +120,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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {containerToAppend:containerToAppend, count:count} );
|
}, {containerToAppend:containerToAppend, count:count} );
|
||||||
|
@ -205,6 +205,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;
|
||||||
|
Loading…
Reference in New Issue
Block a user