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

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

Issue 2645273002: [MD Bookmarks] Modify search to retain the previously selected folder. (Closed)
Patch Set: Rebase Created 3 years, 10 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..1a02d2a467513b451f0d157461d79ecd9d62f4a2 100644
--- a/chrome/browser/resources/md_bookmarks/router.js
+++ b/chrome/browser/resources/md_bookmarks/router.js
@@ -35,11 +35,8 @@ Polymer({
onQueryChanged_: function() {
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('selected-folder-changed', {id: this.selectedId});
+ this.fire('search-term-changed', this.searchTerm);
},
/** @private */

Powered by Google App Engine
This is Rietveld 408576698