aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-03-08 15:33:26 +0000
committerMax Kostikov <max@kostikov.co>2021-03-08 15:33:26 +0000
commit182dec3e574a1db1f737b1ff2f4a6423a0911b1d (patch)
treeef39b606a538f0b7e1b723bf7f676d8efe95dbe1 /view/js
parent8ab6076566a1c872a767e05c69ae77f7374a1947 (diff)
downloadvolse-hubzilla-182dec3e574a1db1f737b1ff2f4a6423a0911b1d.tar.gz
volse-hubzilla-182dec3e574a1db1f737b1ff2f4a6423a0911b1d.tar.bz2
volse-hubzilla-182dec3e574a1db1f737b1ff2f4a6423a0911b1d.zip
Fix undefined page end on non dynamic pages
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js2
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;