This commit is contained in:
seaweedchan 2013-08-18 06:00:23 -07:00
commit 60ad20f6a5
4 changed files with 6 additions and 6 deletions

View File

@ -4979,7 +4979,7 @@
if (!Header.areNotificationsEnabled) {
return;
}
notif = new Notice('Quick reply warning', {
notif = new Notification(el.textContent, {
body: el.textContent,
icon: Favicon.logo
});
@ -8231,7 +8231,7 @@
return;
}
name = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', post.nodes.info).textContent.trim();
notif = new Notice("" + name + " replied to you", {
notif = new Notification("" + name + " replied to you", {
body: post.info.comment,
icon: Favicon.logo
});

View File

@ -4982,7 +4982,7 @@
if (!Header.areNotificationsEnabled) {
return;
}
notif = new Notice('Quick reply warning', {
notif = new Notification(el.textContent, {
body: el.textContent,
icon: Favicon.logo
});
@ -8216,7 +8216,7 @@
return;
}
name = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', post.nodes.info).textContent.trim();
notif = new Notice("" + name + " replied to you", {
notif = new Notification("" + name + " replied to you", {
body: post.info.comment,
icon: Favicon.logo
});

View File

@ -100,7 +100,7 @@ Unread =
'Anonymous'
else
$('.nameBlock', post.nodes.info).textContent.trim()
notif = new Notice "#{name} replied to you",
notif = new Notification "#{name} replied to you",
body: post.info.comment
icon: Favicon.logo
notif.onclick = ->

View File

@ -154,7 +154,7 @@ QR =
notice = new Notice 'warning', el
QR.notifications.push notice
return unless Header.areNotificationsEnabled
notif = new Notice 'Quick reply warning',
notif = new Notification el.textContent,
body: el.textContent
icon: Favicon.logo
notif.onclick = -> window.focus()