実際に開かれるツリーにおける親を選択しておくようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4854 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-07-31 04:08:03 +00:00
parent 290d7bebc7
commit 1a83f1edc4

View File

@ -80,11 +80,12 @@ var TreeStyleTabBookmarksProperty = {
},
_createSiblingsFragment : function(aCurrentItem)
{
var selected = TreeStyleTabService.getParentItemForBookmarkItem(aCurrentItem);
var items = this._getItemsInFolder(PlacesUtils.bookmarks.getFolderIdForItem(aCurrentItem));
var treeStructure = TreeStyleTabService.getTreeStructureFromBookmarkItems(items);
var selected = treeStructure[current];
if (selected > -1) selected = items[selected];
var fragment = document.createDocumentFragment();
var afterCurrent = false;
items.forEach(function(aId, aIndex) {