Browse Source

Make all notifications show, not just the first unread

pull/107/head
discomrade 3 years ago
parent
commit
d1db003472
  1. 4
      js/auto-reload.js

4
js/auto-reload.js

@ -240,10 +240,10 @@ $(document).ready(function(){
if (!new_posts) {
first_new_post = this;
makeIcon('reply');
if (notify === "all" || (notify === "mention" && $(this).find('.own_post').length)) {
}
if (notify === "all" || (notify === "mention" && $(this).find('.own_post').length)) {
var body = $(this).children('.body').html().replace(/<br\s*[\/]?>/gi, "\n");
var n = new Notification("New reply to "+$('title').text(), {body: $('<div/>').html(body).text()});
}
}
if ($("div.post").length > 1){
$(this).insertAfter($('div.post:not(.post-hover):last').next()).after('<br class="clear">');

Loading…
Cancel
Save