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:
parent
3a2e2f4f6e
commit
ad935a1aef
@ -236,7 +236,7 @@ $(document).ready(function(){
|
|||||||
var n = new Notification("New reply to "+$('title').text(), {body: $('<div/>').html(body).text()});
|
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++;
|
new_posts++;
|
||||||
loaded_posts++;
|
loaded_posts++;
|
||||||
$(document).trigger('new_post', this);
|
$(document).trigger('new_post', this);
|
||||||
|
Loading…
Reference in New Issue
Block a user