Save nested tree as nested bookmark folders correctly when a nested tree of tabs is droppend to bookmarks

This commit is contained in:
Piro / SHIMODA Hiroshi 2012-08-03 02:02:43 +09:00
parent 4f73a9861d
commit 74a75f93aa

View File

@ -79,7 +79,7 @@ var TreeStyleTabBookmarksService = {
let index = aTreeStructure[i];
let parent = index > -1 ? aBookarmks[index] : null ;
if (parent && (parent.folder || parent).isFolder) {
let folder = parent.folder || parent;
let folder = parent.isFolder ? parent : parent.folder ;
this.BookmarksService.moveItem(item.id, folder.id, -1);
item.folder = folder;
}