From 17cee2cb992790ebca2f50e231eb83042fd00e46 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Tue, 18 Feb 2014 12:40:13 -0500 Subject: [PATCH] pagination fix if only 1 topic --- public/src/forum/topic.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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(); + } } } }