選択されたブックマーク項目や履歴項目をタブで開く時、常に最初の項目が親になってしまっていた
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4847 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
6f1d00d6b1
commit
c6e2cf4cc7
@ -16,7 +16,8 @@ window.addEventListener('load', function() {
|
||||
<![CDATA[
|
||||
var openGroupBookmarkBehavior = TreeStyleTabService.openGroupBookmarkBehavior();
|
||||
var treeStructure = ids.map(function(aId) {
|
||||
return ids.indexOf(TreeStyleTabService.getParentItemForBookmark(aId));
|
||||
let id = TreeStyleTabService.getParentItemForBookmark(aId);
|
||||
return id < 0 ? -1 : ids.indexOf(id);
|
||||
});
|
||||
treeStructure = treeStructure.reverse();
|
||||
treeStructure = treeStructure.map(function(aPosition, aIndex) {
|
||||
|
Loading…
Reference in New Issue
Block a user