Fix Notifications

This commit is contained in:
Zixaphir 2013-08-18 05:18:25 -07:00
parent ce78a9d403
commit 110f9fe9aa
4 changed files with 6 additions and 6 deletions

View File

@ -5161,7 +5161,7 @@
if (!Header.areNotificationsEnabled) { if (!Header.areNotificationsEnabled) {
return; return;
} }
notif = new Notice('Quick reply warning', { notif = new Notification(el.textContent, {
body: el.textContent, body: el.textContent,
icon: Favicon.logo icon: Favicon.logo
}); });
@ -8541,7 +8541,7 @@
return; return;
} }
name = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', post.nodes.info).textContent.trim(); 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, body: post.info.comment,
icon: Favicon.logo icon: Favicon.logo
}); });

View File

@ -5164,7 +5164,7 @@
if (!Header.areNotificationsEnabled) { if (!Header.areNotificationsEnabled) {
return; return;
} }
notif = new Notice('Quick reply warning', { notif = new Notification(el.textContent, {
body: el.textContent, body: el.textContent,
icon: Favicon.logo icon: Favicon.logo
}); });
@ -8526,7 +8526,7 @@
return; return;
} }
name = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', post.nodes.info).textContent.trim(); 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, body: post.info.comment,
icon: Favicon.logo icon: Favicon.logo
}); });

View File

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

View File

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