summaryrefslogtreecommitdiff
path: root/js/auto-reload.js
diff options
context:
space:
mode:
authorMichael Save <savetheinternet@tinyboard.org>2012-03-16 09:08:03 +1100
committerMichael Save <savetheinternet@tinyboard.org>2012-03-16 09:08:03 +1100
commitf48d338ce051070a0eb096ab5cac073f19467549 (patch)
tree5a8fa1f8d51e25127e79aaccba81209f2d4e3b7f /js/auto-reload.js
parent53f4bf6136c99e4ca4099357173226c229885844 (diff)
$('div.post.reply:last') is too specific; use $('div.post:last') or else it won't include the OP
Diffstat (limited to 'js/auto-reload.js')
-rw-r--r--js/auto-reload.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/auto-reload.js b/js/auto-reload.js
index 5070c9ca..0921c36d 100644
--- a/js/auto-reload.js
+++ b/js/auto-reload.js
@@ -26,7 +26,7 @@ $(document).ready(function(){
$(data).find('div.post.reply').each(function() {
var id = $(this).attr('id');
if($('#' + id).length == 0) {
- $(this).insertAfter($('div.reply:last').next()).after('<br class="clear">');
+ $(this).insertAfter($('div.post:last').next()).after('<br class="clear">');
}
});
}
@@ -36,7 +36,7 @@ $(document).ready(function(){
};
$(window).scroll(function() {
- if($(this).scrollTop() + $(this).height() < $('div.post.reply:last').position().top + $('div.post.reply:last').height()) {
+ if($(this).scrollTop() + $(this).height() < $('div.post:last').position().top + $('div.post:last').height()) {
clearTimeout(poll_interval);
poll_interval = false;
return;