洗濯された最初のタブがあった位置に新しいツリーを移動するように
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4793 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
8001d00384
commit
327933ecb7
@ -2274,12 +2274,22 @@ catch(e) {
|
||||
|
||||
var parent = this.getParentTab(aTabs[0]);
|
||||
|
||||
var prev = aTabs[0];
|
||||
while (
|
||||
(prev = this.getNextSiblingTab(prev)) &&
|
||||
aTabs.indexOf(prev) > -1
|
||||
);
|
||||
|
||||
window.setTimeout(function(aSelf) {
|
||||
aTabs.forEach(function(aTab) {
|
||||
b.treeStyleTab.attachTabTo(aTab, root);
|
||||
b.treeStyleTab.collapseExpandTab(aTab, false);
|
||||
}, aSelf);
|
||||
if (parent) b.treeStyleTab.attachTabTo(root, parent);
|
||||
if (parent) {
|
||||
b.treeStyleTab.attachTabTo(root, parent, {
|
||||
insertBefore : prev
|
||||
});
|
||||
}
|
||||
}, 0, this);
|
||||
},
|
||||
canCreateSubTree : function(aTabs)
|
||||
|
Loading…
x
Reference in New Issue
Block a user