diff options
author | Mario <mario@mariovavti.com> | 2021-03-08 19:08:50 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-03-08 19:08:50 +0000 |
commit | 0e015d52a53960a45f57c8dbf3bb00054543703b (patch) | |
tree | 62581a76cae89eb8a58a3d2d7b9b07145d7ec3c1 | |
parent | f952d65cfd612a73dad0de0160318c630eed4c69 (diff) | |
parent | 98112497baab3c4210709df536543a6392dfd838 (diff) | |
download | volse-hubzilla-0e015d52a53960a45f57c8dbf3bb00054543703b.tar.gz volse-hubzilla-0e015d52a53960a45f57c8dbf3bb00054543703b.tar.bz2 volse-hubzilla-0e015d52a53960a45f57c8dbf3bb00054543703b.zip |
Merge branch 'dev' into 'dev'
Fix undefined page end on non dynamic pages
See merge request hubzilla/core!1920
-rw-r--r-- | view/js/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js index 0c48c8b18..16dcd9cfe 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1574,7 +1574,7 @@ $(window).scroll(function () { } else { // This is some other kind of page - perhaps a directory - if($(window).scrollTop() + $(window).height() > $('#page-end').position().top) { + if($('#page-end').length && ($(window).scrollTop() + $(window).height() > $('#page-end').position().top)) { if((pageHasMoreContent) && (! loadingPage) && (! justifiedGalleryActive)) { next_page++; scroll_next = true; |