ツリーとして保存されたブックマーク以外のブックマークが紛れ込んでいる時は、ツリー構造の中に組み込むようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4827 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
e80d307031
commit
44fb731dc0
@ -24,6 +24,16 @@ window.addEventListener('load', function() {
|
||||
}
|
||||
return -1;
|
||||
});
|
||||
treeStructure = treeStructure.reverse();
|
||||
treeStructure = treeStructure.map(function(aPosition, aIndex) {
|
||||
if (aIndex > 0 &&
|
||||
aIndex < treeStructure.length-1 &&
|
||||
aPosition < 0) {
|
||||
return treeStructure[aIndex-1];
|
||||
}
|
||||
return aPosition;
|
||||
});
|
||||
treeStructure = treeStructure.reverse();
|
||||
if (
|
||||
where.indexOf('tab') == 0 ||
|
||||
aEvent.target.id == 'placesContext_openContainer:tabs' ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user