Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/notificationHelper.js

Issue 29326181: Issue 3022 - Implemented new notification type for normal messages (Closed)
Patch Set: Created Sept. 9, 2015, 1:12 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | notification.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/notificationHelper.js
===================================================================
--- a/lib/notificationHelper.js
+++ b/lib/notificationHelper.js
@@ -42,7 +42,8 @@
function prepareNotificationIconAndPopup()
{
- let animateIcon = (activeNotification.type != "question");
+ let animateIcon = (activeNotification.type == "critical"
Sebastian Noack 2015/09/09 13:35:36 I wonder whether we should use global objects used
Thomas Greiner 2015/09/09 15:32:36 Done. However, I decided to implement a function t
+ || activeNotification.type == "information");
activeNotification.onClicked = function()
{
if (animateIcon)
@@ -135,7 +136,9 @@
return;
activeNotification = notification;
- if (activeNotification.type == "critical" || activeNotification.type == "question")
+ if (activeNotification.type == "critical"
+ || activeNotification.type == "question"
+ || activeNotification.type == "normal")
{
let texts = NotificationStorage.getLocalizedTexts(notification);
let title = texts.title || "";
« no previous file with comments | « no previous file | notification.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld