Merge pull request #30 from tjohnman/fix-ajax-posting

After posting we scroll to the bottom without waiting for the new post to be fetched.
This commit is contained in:
Michael Walker 2015-09-09 04:58:52 +01:00
commit 68291a0fc0

View File

@ -94,7 +94,7 @@ $(window).ready(function() {
highlightReply(post_response.id); highlightReply(post_response.id);
window.location.hash = post_response.id; window.location.hash = post_response.id;
$(window).scrollTop($('div.post#reply_' + post_response.id).offset().top); $(window).scrollTop($(document).height());
$(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');