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(); + } } } }