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

This commit is contained in:
Benjamin Southall 2017-03-11 17:52:39 +09:00
parent 3a2e2f4f6e
commit ad935a1aef

View File

@ -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);