diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2017-03-13 19:02:22 +0900 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2017-03-13 19:02:22 +0900 |
| commit | 2fae551db7cc74f8eacfce9e71a105acb119fa48 (patch) | |
| tree | 88d481c94953fbeaffe5f4870dd40a8798d2bcd2 | |
| parent | ad935a1aefb16d4b9af541a7eac5cb92cc5fb1d5 (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.
| -rw-r--r-- | js/auto-reload.js | 2 |
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); |
