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

Unified Diff: chrome/browser/resources/ntp4/bookmarks_page.js

Issue 7838019: [ntp4] Include a helper link for importing bookmarks if the user doesn't have any. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 months 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
« no previous file with comments | « chrome/browser/resources/ntp4/bookmarks_page.css ('k') | chrome/browser/resources/ntp4/new_tab.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/bookmarks_page.js
===================================================================
--- chrome/browser/resources/ntp4/bookmarks_page.js (revision 99783)
+++ chrome/browser/resources/ntp4/bookmarks_page.js (working copy)
@@ -297,6 +297,13 @@
} else {
wrapper.hidden = true;
}
+
+ if (this.id === ROOT_NODE_ID && !tile_count) {
+ var importTemplate = $('bookmarks-import-data-link-wrapper');
+ var importWrapper = importTemplate.cloneNode(true);
+ importWrapper.hidden = false;
+ this.querySelector('.tile-page-content').appendChild(importWrapper);
Evan Stade 2011/09/07 03:55:21 don't you need to remove it at some point (if the
csilv 2011/09/07 06:11:14 Yup, for add. Done.
+ }
},
/**
« no previous file with comments | « chrome/browser/resources/ntp4/bookmarks_page.css ('k') | chrome/browser/resources/ntp4/new_tab.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698