Browse Source

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

pull/40/head
Benjamin Southall 7 years ago
parent
commit
ad935a1aef
  1. 2
      js/auto-reload.js

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

Loading…
Cancel
Save