This commit is contained in:
barisusakli
2014-10-30 23:14:33 -04:00
parent 0ede4abe18
commit e97bfc139b
2 changed files with 13 additions and 13 deletions

View File

@@ -152,7 +152,7 @@ define('navigator', ['forum/pagination'], function(pagination) {
}
navigator.scrollToPost = function(postIndex, highlight, duration, offset) {
if (!utils.isNumber(postIndex)) {
if (!utils.isNumber(postIndex) || !$('.post-container').length) {
return;
}