forked from leftypol/leftypol
Make all notifications show, not just the first unread
This commit is contained in:
parent
34f178d53e
commit
d1db003472
|
@ -240,11 +240,11 @@ $(document).ready(function(){
|
||||||
if (!new_posts) {
|
if (!new_posts) {
|
||||||
first_new_post = this;
|
first_new_post = this;
|
||||||
makeIcon('reply');
|
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 body = $(this).children('.body').html().replace(/<br\s*[\/]?>/gi, "\n");
|
||||||
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()});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if ($("div.post").length > 1){
|
if ($("div.post").length > 1){
|
||||||
$(this).insertAfter($('div.post:not(.post-hover):last').next()).after('<br class="clear">');
|
$(this).insertAfter($('div.post:not(.post-hover):last').next()).after('<br class="clear">');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user