mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
updated core to point #post_container and .post-row to its respective components
This commit is contained in:
@@ -153,7 +153,7 @@ define('navigator', ['forum/pagination'], function(pagination) {
|
||||
}
|
||||
|
||||
navigator.scrollToPost = function(postIndex, highlight, duration, offset) {
|
||||
if (!utils.isNumber(postIndex) || !$('#post-container').length) {
|
||||
if (!utils.isNumber(postIndex) || !components.get('topic').length) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ define('navigator', ['forum/pagination'], function(pagination) {
|
||||
}
|
||||
}
|
||||
|
||||
if ($('#post-container').length) {
|
||||
if (components.get('topic').length) {
|
||||
animateScroll();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user