From 32aa1802c721d93c62212ce7f448b5f2ae85621b Mon Sep 17 00:00:00 2001 From: discomrade Date: Thu, 3 Feb 2022 22:32:37 -0100 Subject: [PATCH] Disable jumping down to the bottom after a new post --- js/ajax.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/ajax.js b/js/ajax.js index d90af383..11c49ea7 100644 --- a/js/ajax.js +++ b/js/ajax.js @@ -105,9 +105,10 @@ $(window).ready(function() { } }); - highlightReply(post_response.id); - window.location.hash = post_response.id; - $(window).scrollTop($('div.post#reply_' + post_response.id).offset().top); + // Jump down to new post. + //highlightReply(post_response.id); + //window.location.hash = post_response.id; + //$(window).scrollTop($('div.post#reply_' + post_response.id).offset().top); $(form).find('input[type="submit"]').val(submit_txt); $(form).find('input[type="submit"]').removeAttr('disabled');