Browse Source

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

master
Denis Ryabov 11 years ago
parent
commit
4a67e95da5
  1. 1
      js/twister_actions.js
  2. 1
      js/twister_timeline.js

1
js/twister_actions.js

@ -120,6 +120,7 @@ function requestPostRecursively(containerToAppend,username,resource,count) @@ -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} );

1
js/twister_timeline.js

@ -205,6 +205,7 @@ function processReceivedPosts(req, posts) { @@ -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;

Loading…
Cancel
Save