mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user