summaryrefslogtreecommitdiff
path: root/js/auto-reload.js
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2017-03-13 19:02:22 +0900
committerBenjamin Southall <applemansigloo@gmail.com>2017-03-13 19:02:22 +0900
commit2fae551db7cc74f8eacfce9e71a105acb119fa48 (patch)
tree88d481c94953fbeaffe5f4870dd40a8798d2bcd2 /js/auto-reload.js
parentad935a1aefb16d4b9af541a7eac5cb92cc5fb1d5 (diff)
Feature Req: on/off button for auto-reload js #1 Fix insertafter selector so that new post gets autoloaded with the correct formatting and spacing.
Diffstat (limited to 'js/auto-reload.js')
-rw-r--r--js/auto-reload.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/auto-reload.js b/js/auto-reload.js
index fba26849..0282164a 100644
--- a/js/auto-reload.js
+++ b/js/auto-reload.js
@@ -236,7 +236,7 @@ $(document).ready(function(){
var n = new Notification("New reply to "+$('title').text(), {body: $('<div/>').html(body).text()});
}
}
- $(this).insertAfter($('div.post:not(.post-hover):last')).after('<br class="clear">');
+ $(this).parent().insertAfter($('div.post:not(.post-hover):last').parent().next()).after('<br class="clear">');
new_posts++;
loaded_posts++;
$(document).trigger('new_post', this);