Browse Source

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

master
Miguel Freitas 11 years ago
parent
commit
891f7bf24e
  1. 1
      js/twister_actions.js
  2. 3
      js/twister_timeline.js

1
js/twister_actions.js

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

3
js/twister_timeline.js

@ -204,6 +204,7 @@ function processReceivedPosts(req, posts) @@ -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){ @@ -338,4 +339,4 @@ function willBeHidden(post){
}
return hidden;
}
}

Loading…
Cancel
Save