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('
');
+ $(this).insertAfter($('div.post:last').next()).after('
');
}
});
}
@@ -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;