summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAnonymous <anonymous@lainchan.org>2015-09-08 00:31:14 +0200
committerAnonymous <anonymous@lainchan.org>2015-09-08 00:31:14 +0200
commit8d251cadf106e55a436d3726c9cbe5b357d4b712 (patch)
treebb36fa6b9254a485c84169e9a65ab15aa46b47c9 /js
parentedde68f97da97599210dcef09e24ca3a322ff022 (diff)
After posting we scroll to the bottom without waiting for the new post to be fetched. Fixes issue #28.
Diffstat (limited to 'js')
-rw-r--r--js/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/ajax.js b/js/ajax.js
index 56f0df5c..1072031d 100644
--- a/js/ajax.js
+++ b/js/ajax.js
@@ -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');