Browse Source

Disable jumping down to the bottom after a new post

main
discomrade 2 years ago
parent
commit
32aa1802c7
  1. 7
      js/ajax.js

7
js/ajax.js

@ -105,9 +105,10 @@ $(window).ready(function() {
} }
}); });
highlightReply(post_response.id); // Jump down to new post.
window.location.hash = post_response.id; //highlightReply(post_response.id);
$(window).scrollTop($('div.post#reply_' + post_response.id).offset().top); //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"]').val(submit_txt);
$(form).find('input[type="submit"]').removeAttr('disabled'); $(form).find('input[type="submit"]').removeAttr('disabled');

Loading…
Cancel
Save