| 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 8f0ef849e334c115d6178bff4e4628950a34fcd8..eb4cb11c7a3cab9825505dd03faceb876fb8ba14 100644
|
| --- a/chrome/browser/resources/md_bookmarks/store.js
|
| +++ b/chrome/browser/resources/md_bookmarks/store.js
|
| @@ -357,9 +357,24 @@ var BookmarksStore = Polymer({
|
| if (!this.idToNodeMap_[id] || this.idToNodeMap_[id].url)
|
| id = this.rootNode.children[0].id;
|
|
|
| - var newFolder = this.idToNodeMap_[id];
|
| - this.set(newFolder.path + '.isSelectedFolder', true);
|
| + var folder = this.idToNodeMap_[id];
|
| + this.set(folder.path + '.isSelectedFolder', true);
|
| this.selectedId = id;
|
| +
|
| + if (folder.id == this.rootNode.id)
|
| + return;
|
| +
|
| + var parent = this.idToNodeMap_[/** @type {?string} */ (folder.parentId)];
|
| + while (parent) {
|
| + if (!parent.isOpen) {
|
| + this.fire('folder-open-changed', {
|
| + id: parent.id,
|
| + open: true,
|
| + });
|
| + }
|
| +
|
| + parent = this.idToNodeMap_[/** @type {?string} */ (parent.parentId)];
|
| + }
|
| },
|
|
|
| /**
|
|
|