mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
closes #4704
This commit is contained in:
@@ -57,6 +57,7 @@ define('forum/topic/posts', [
|
||||
function onNewPostPagination(data) {
|
||||
function scrollToPost() {
|
||||
scrollToPostIfSelf(data.posts[0]);
|
||||
Posts.loadImages();
|
||||
}
|
||||
|
||||
var posts = data.posts;
|
||||
@@ -92,12 +93,13 @@ define('forum/topic/posts', [
|
||||
html.addClass('new');
|
||||
}
|
||||
scrollToPostIfSelf(data.posts[0]);
|
||||
Posts.loadImages();
|
||||
});
|
||||
}
|
||||
|
||||
function scrollToPostIfSelf(post) {
|
||||
if (!ajaxify.data.scrollToMyPost) {
|
||||
return;
|
||||
return;
|
||||
}
|
||||
var isSelfPost = parseInt(post.uid, 10) === parseInt(app.user.uid, 10);
|
||||
if (isSelfPost) {
|
||||
|
||||
Reference in New Issue
Block a user