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

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

Issue 2645273002: [MD Bookmarks] Modify search to retain the previously selected folder. (Closed)
Patch Set: Merge and move selectedId update logic into one function. 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/router.js
diff --git a/chrome/browser/resources/md_bookmarks/router.js b/chrome/browser/resources/md_bookmarks/router.js
index 38b16f1602b66411ddf12a73668bcad0cd2e54e0..54dc4898826fa8c3d75f17156a15ff21ff5b2245 100644
--- a/chrome/browser/resources/md_bookmarks/router.js
+++ b/chrome/browser/resources/md_bookmarks/router.js
@@ -36,10 +36,8 @@ Polymer({
this.searchTerm = this.queryParams_.q || '';
this.selectedId = this.queryParams_.id;
- if (this.searchTerm)
- this.fire('search-term-changed', this.searchTerm);
- else
- this.fire('selected-folder-changed', this.selectedId);
+ this.fire('search-term-changed', this.searchTerm);
+ this.fire('selected-folder-changed', this.selectedId);
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698