From 1a83f1edc40e07c223ffefb0e92ef3670f725fd8 Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 31 Jul 2009 04:08:03 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AE=9F=E9=9A=9B=E3=81=AB=E9=96=8B=E3=81=8B?= =?UTF-8?q?=E3=82=8C=E3=82=8B=E3=83=84=E3=83=AA=E3=83=BC=E3=81=AB=E3=81=8A?= =?UTF-8?q?=E3=81=91=E3=82=8B=E8=A6=AA=E3=82=92=E9=81=B8=E6=8A=9E=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=81=8A=E3=81=8F=E3=82=88=E3=81=86=E3=81=AB=E3=81=97?= =?UTF-8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4854 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/editBookmarkOverlay.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/editBookmarkOverlay.js b/content/treestyletab/editBookmarkOverlay.js index 1d737722..d623d125 100644 --- a/content/treestyletab/editBookmarkOverlay.js +++ b/content/treestyletab/editBookmarkOverlay.js @@ -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) {