upgraded userlist to 3 sorted sets, run node app -upgrade after updating to this commit, added infinite scrolling to all user pages, added ops per second to redis page, changed the percentage to 90% for infinite scrolling to kick in

This commit is contained in:
Baris Soner Usakli
2013-08-12 14:32:56 -04:00
parent 4457228903
commit ded0200355
18 changed files with 212 additions and 99 deletions

View File

@@ -122,10 +122,9 @@
}
$(window).off('scroll').on('scroll', function(ev) {
var windowHeight = document.body.offsetHeight - $(window).height(),
half = windowHeight / 2;
var bottom = (document.body.offsetHeight - $(window).height()) * 0.9;
if (document.body.scrollTop > half && !loadingMoreTopics) {
if (document.body.scrollTop > bottom && !loadingMoreTopics) {
loadMoreTopics(cid);
}
});