Fix indent
This commit is contained in:
parent
b48594201a
commit
728f16434a
@ -395,29 +395,29 @@ var TreeStyleTabBookmarksService = {
|
|||||||
sv.getTreeStructureFromItems(aIDs) ;
|
sv.getTreeStructureFromItems(aIDs) ;
|
||||||
if (treeStructure) {
|
if (treeStructure) {
|
||||||
if (result.behavior & sv.kGROUP_BOOKMARK_USE_DUMMY) {
|
if (result.behavior & sv.kGROUP_BOOKMARK_USE_DUMMY) {
|
||||||
let parentCount = 0;
|
let parentCount = 0;
|
||||||
let childCount = 0;
|
let childCount = 0;
|
||||||
for (let i in treeStructure) {
|
for (let i in treeStructure) {
|
||||||
if (treeStructure[i] == -1)
|
if (treeStructure[i] == -1)
|
||||||
parentCount++;
|
parentCount++;
|
||||||
else
|
else
|
||||||
childCount++;
|
childCount++;
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
parentCount > 1 &&
|
parentCount > 1 &&
|
||||||
(
|
(
|
||||||
result.behavior & sv.kGROUP_BOOKMARK_USE_DUMMY_FORCE ||
|
result.behavior & sv.kGROUP_BOOKMARK_USE_DUMMY_FORCE ||
|
||||||
// when there is any orphan, then all of parents and orphans should be grouped under a dummy tab.
|
// when there is any orphan, then all of parents and orphans should be grouped under a dummy tab.
|
||||||
childCount < parentCount
|
childCount < parentCount
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
aIDs.unshift(-1);
|
aIDs.unshift(-1);
|
||||||
treeStructure = sv.getTreeStructureFromItems(aIDs, 0);
|
treeStructure = sv.getTreeStructureFromItems(aIDs, 0);
|
||||||
aURLs.unshift(sv.getGroupTabURI({
|
aURLs.unshift(sv.getGroupTabURI({
|
||||||
title: aFolderTitle,
|
title: aFolderTitle,
|
||||||
temporary: TreeStyleTabUtils.getTreePref('openGroupBookmark.temporaryGroup')
|
temporary: TreeStyleTabUtils.getTreePref('openGroupBookmark.temporaryGroup')
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// make the first item parent.
|
// make the first item parent.
|
||||||
|
Loading…
Reference in New Issue
Block a user