Skip to content

Node.js based forum software built for the modern web

pagination fix if only 1 topic

Baris Soner Usakli17cee2cb9927
diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js
index 727e3cde20..564d964c13 100644
--- a/public/src/forum/topic.js
+++ b/public/src/forum/topic.js
@@ -1195,8 +1195,12 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
});
}
- if (tid && scrollTo.length && $('#post-container li.post-row[data-pid="' + pid + '"]').attr('data-index') !== '0') {
- animateScroll();
+ if (tid && scrollTo.length) {
+ if($('#post-container li.post-row[data-pid="' + pid + '"]').attr('data-index') !== '0') {
+ animateScroll();
+ } else {
+ updateHeader();
+ }
}
}
}