Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(458)

Unified Diff: chrome/browser/resources/new_new_tab.js

Issue 394005: Add message and image to NTP to promote extensions and bookmark sync.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/new_new_tab.js
===================================================================
--- chrome/browser/resources/new_new_tab.js (revision 32026)
+++ chrome/browser/resources/new_new_tab.js (working copy)
@@ -1587,3 +1587,11 @@
}
updateAttribution();
+
+/* Close the promo notices when close button on the promo-line is clicked. */
arv (Not doing code reviews) 2009/11/16 17:47:48 // Comment in JS. /** * JSDoc comment */ In th
Miranda Callahan 2009/11/16 22:10:54 Done.
+$('promo-close').onclick = function (e) {
+ $('promo-line').style.display = 'none';
+ $('bottom-right-promo').style.display = 'none';
+ chrome.send('stopPromoMessages');
+ e.preventDefault();
+};

Powered by Google App Engine
This is Rietveld 408576698