mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-07 15:19:29 +02:00
Add setting to avoid showing a post after it is submitted to keep the user's place on the page to address issue #4363
This commit is contained in:
@@ -79,7 +79,7 @@ define('forum/topic/posts', [
|
||||
}
|
||||
|
||||
function scrollToPostIfSelf(post) {
|
||||
var isSelfPost = parseInt(post.uid, 10) === parseInt(app.user.uid, 10);
|
||||
var isSelfPost = config.scrollToMyPost && parseInt(post.uid, 10) === parseInt(app.user.uid, 10);
|
||||
if (isSelfPost) {
|
||||
navigator.scrollBottom(post.index);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user