実際に開かれるツリーにおける親を選択しておくようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4854 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
290d7bebc7
commit
1a83f1edc4
@ -80,11 +80,12 @@ var TreeStyleTabBookmarksProperty = {
|
|||||||
},
|
},
|
||||||
_createSiblingsFragment : function(aCurrentItem)
|
_createSiblingsFragment : function(aCurrentItem)
|
||||||
{
|
{
|
||||||
var selected = TreeStyleTabService.getParentItemForBookmarkItem(aCurrentItem);
|
|
||||||
|
|
||||||
var items = this._getItemsInFolder(PlacesUtils.bookmarks.getFolderIdForItem(aCurrentItem));
|
var items = this._getItemsInFolder(PlacesUtils.bookmarks.getFolderIdForItem(aCurrentItem));
|
||||||
var treeStructure = TreeStyleTabService.getTreeStructureFromBookmarkItems(items);
|
var treeStructure = TreeStyleTabService.getTreeStructureFromBookmarkItems(items);
|
||||||
|
|
||||||
|
var selected = treeStructure[current];
|
||||||
|
if (selected > -1) selected = items[selected];
|
||||||
|
|
||||||
var fragment = document.createDocumentFragment();
|
var fragment = document.createDocumentFragment();
|
||||||
var afterCurrent = false;
|
var afterCurrent = false;
|
||||||
items.forEach(function(aId, aIndex) {
|
items.forEach(function(aId, aIndex) {
|
||||||
|
Loading…
Reference in New Issue
Block a user