mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
fix so the parent button doesn't ajaxify if the post is already on the screen
This commit is contained in:
@@ -198,7 +198,8 @@ define('forum/topic', [
|
||||
var toPost = $('[component="post"][data-pid="' + toPid + '"]');
|
||||
if (toPost.length) {
|
||||
e.preventDefault();
|
||||
return navigator.scrollToPost(toPost.attr('data-index'), true);
|
||||
navigator.scrollToPost(toPost.attr('data-index'), true);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user