| 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..764d18b80444ac0824183c57182fd5a62acc7e2f 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_[folder.parentId];
|
| + while (parent) {
|
| + if (!parent.isOpen) {
|
| + this.fire('folder-open-changed', {
|
| + id: parent.id,
|
| + open: true,
|
| + });
|
| + }
|
| +
|
| + parent = this.idToNodeMap_[parent.parentId];
|
| + }
|
| },
|
|
|
| /**
|
|
|