Chromium Code Reviews| 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(); |
| +}; |