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

Unified Diff: chrome/browser/resources/md_bookmarks/store.js

Issue 2639893006: [MD Bookmarks] Add lines between items and no search results message. (Closed)
Patch Set: Fix css on separator line Created 3 years, 11 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
Index: chrome/browser/resources/md_bookmarks/store.js
diff --git a/chrome/browser/resources/md_bookmarks/store.js b/chrome/browser/resources/md_bookmarks/store.js
index 90eb8e91399813ddb1b8d1f2b06ae6005a305adf..a5f3790860df23d81c4a276fef5d107f6ad26afe 100644
--- a/chrome/browser/resources/md_bookmarks/store.js
+++ b/chrome/browser/resources/md_bookmarks/store.js
@@ -21,6 +21,7 @@ var BookmarksStore = Polymer({
searchTerm: {
type: String,
+ value: '',
observer: 'updateSearchDisplay_',
notify: true,
},
@@ -115,6 +116,9 @@ var BookmarksStore = Polymer({
/** @private */
updateSearchDisplay_: function() {
+ if (!this.rootNode)
+ return;
+
if (!this.searchTerm) {
this.fire('selected-folder-changed', this.rootNode.children[0].id);
} else {
« no previous file with comments | « chrome/browser/resources/md_bookmarks/shared_vars.html ('k') | chrome/browser/ui/webui/md_bookmarks/md_bookmarks_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698