diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-02-15 22:20:55 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-02-15 22:20:55 +0100 |
commit | afb86aa90896c04101e384edcb4fef6514fbefcc (patch) | |
tree | 2583754a1174806cfdd345d89c53030098afe31c /view/js/main.js | |
parent | d3c779f635752c80af8462f04761da7be292a733 (diff) | |
download | volse-hubzilla-afb86aa90896c04101e384edcb4fef6514fbefcc.tar.gz volse-hubzilla-afb86aa90896c04101e384edcb4fef6514fbefcc.tar.bz2 volse-hubzilla-afb86aa90896c04101e384edcb4fef6514fbefcc.zip |
clean up some unused stuff and start loading content a bit earlier
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/view/js/main.js b/view/js/main.js index f75f1f095..cf367ec87 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1231,21 +1231,8 @@ function zFormError(elm,x) { $(window).scroll(function () { if(typeof buildCmd == 'function') { // This is a content page with items and/or conversations - $('#more').hide(); - $('#no-more').hide(); - - if($(window).scrollTop() + $(window).height() > $(document).height() - 200) { - $('#more').css("top","400"); - $('#more').show(); - } - - if($(window).scrollTop() + $(window).height() > $(document).height() - 100) { -// if($(window).scrollTop() > $(document).height() - ($(window).height() * 1.5 )) { - + if($(window).scrollTop() + $(window).height() > $(document).height() - 300) { if((pageHasMoreContent) && (! loadingPage)) { - $('#more').hide(); - $('#no-more').hide(); - next_page++; scroll_next = true; loadingPage = true; @@ -1255,18 +1242,8 @@ $(window).scroll(function () { } else { // This is some other kind of page - perhaps a directory - - if($(window).scrollTop() + $(window).height() > $(document).height() - 200) { - $('#more').css("top","400"); - $('#more').show(); - } - - if($(window).scrollTop() + $(window).height() > $(document).height() - 100) { -// if($(window).scrollTop() > ($(document).height() - $(window).height() * 1.5 )) { + if($(window).scrollTop() + $(window).height() > $(document).height() - 300) { if((pageHasMoreContent) && (! loadingPage) && (! justifiedGalleryActive)) { - $('#more').hide(); - $('#no-more').hide(); - next_page++; scroll_next = true; loadingPage = true; |