diff options
| author | Michael Walker <mike@barrucadu.co.uk> | 2015-09-09 04:58:52 +0100 |
|---|---|---|
| committer | Michael Walker <mike@barrucadu.co.uk> | 2015-09-09 04:58:52 +0100 |
| commit | 68291a0fc05ad6ba4d12d802529ad947744ef7a6 (patch) | |
| tree | bf9840f8d6f572a017fe39301ed178ce21d784fe | |
| parent | 72e858762876b47efb8fc6db4bb7a8309cb130ee (diff) | |
| parent | 8d251cadf106e55a436d3726c9cbe5b357d4b712 (diff) | |
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.
| -rw-r--r-- | js/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -94,7 +94,7 @@ $(window).ready(function() { highlightReply(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"]').removeAttr('disabled'); |
