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

Unified Diff: notification.js

Issue 29317001: Relocated icon and redesigned icon popup (Closed)
Patch Set: Created Nov. 7, 2013, 5:44 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 | « notification.html ('k') | popup.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: notification.js
===================================================================
--- a/notification.js
+++ b/notification.js
@@ -62,6 +62,7 @@
window.addEventListener("load", function()
{
var notification = backgroundPage.activeNotification;
+
if (!notification)
return;
@@ -69,11 +70,11 @@
notification.onClicked();
var texts = Notification.getLocalizedTexts(notification);
- var titleElement = document.getElementById("title");
+ var titleElement = document.getElementById("notification-title");
titleElement.textContent = texts.title;
var docLinks = getDocLinks(notification);
- var messageElement = document.getElementById("message");
+ var messageElement = document.getElementById("notification-message");
insertMessage(messageElement, texts.message, docLinks);
messageElement.addEventListener("click", function(event)
« no previous file with comments | « notification.html ('k') | popup.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld