Node.js based forum software built for the modern web
fix: don't show bookmark alert when there is nothing to return to (#14476)
palmoni5eb14adce66b8
diff --git a/public/src/client/topic.js b/public/src/client/topic.jsindex 16e7a0023b..256bf458c3 100644--- a/public/src/client/topic.js+++ b/public/src/client/topic.js@@ -157,7 +157,7 @@ define('forum/topic', [updateUserBookmark(postIndex);if (navigator.shouldScrollToPost(postIndex)) {return navigator.scrollToPostIndex(postIndex - 1, true, 0);- } else if (bookmark && (+ } else if (bookmark && parseInt(bookmark, 10) > postIndex && (!config.usePagination ||(config.usePagination && ajaxify.data.pagination.currentPage === 1)) && ajaxify.data.postcount > ajaxify.data.bookmarkThreshold) {@@ -524,6 +524,7 @@ define('forum/topic', [if (ajaxify.data.postcount > ajaxify.data.bookmarkThreshold &&+ index > ajaxify.data.bookmarkThreshold &&(!currentBookmark ||parseInt(index, 10) > parseInt(currentBookmark, 10) ||