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:
boomzillawtf
2016-03-16 17:55:58 -04:00
parent c8b179e492
commit ceb3b6ebe7
3 changed files with 6 additions and 2 deletions

View File

@@ -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);
}