summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2017-03-11 17:52:39 +0900
committerBenjamin Southall <applemansigloo@gmail.com>2017-03-11 17:52:39 +0900
commitad935a1aefb16d4b9af541a7eac5cb92cc5fb1d5 (patch)
treea69aca40b21781a08c4621f91ea12dad2556dce4 /js
parent3a2e2f4f6ec0a329e4bc3da9c9df545ec2ae65e8 (diff)
Feature Req: on/off button for auto-reload js #1 Fix incorrect insertAfter selector which prevented page from being updated when auto-reloaded and caused new post count to climb incorrectly in title of page
Diffstat (limited to '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 4acab9e6..fba26849 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').next()).after('<br class="clear">');
+ $(this).insertAfter($('div.post:not(.post-hover):last')).after('<br class="clear">');
new_posts++;
loaded_posts++;
$(document).trigger('new_post', this);