ドロップ時のアタッチ先タブの判定を間違えていたのを修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1250 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
5af75957f9
commit
0555a9c94d
@ -1318,11 +1318,8 @@ catch(e) {
|
||||
else {
|
||||
var prevNest = Number(prevTab.getAttribute(this.kNEST));
|
||||
var targetNest = Number(tab.getAttribute(this.kNEST));
|
||||
info.action = this.kACTION_MOVE | this.kACTION_ATTACH;
|
||||
info.parent = (
|
||||
(prevNest < targetNest) ? prevTab :
|
||||
this.getParentTab(tab)
|
||||
) || tab ;
|
||||
info.parent = (prevNest < targetNest) ? prevTab : this.getParentTab(tab) ;
|
||||
info.action = this.kACTION_MOVE | (info.parent ? this.kACTION_ATTACH : this.kACTION_PART );
|
||||
info.insertBefore = tab;
|
||||
}
|
||||
break;
|
||||
@ -1348,11 +1345,8 @@ catch(e) {
|
||||
else {
|
||||
var targetNest = Number(tab.getAttribute(this.kNEST));
|
||||
var nextNest = Number(nextTab.getAttribute(this.kNEST));
|
||||
info.action = this.kACTION_MOVE | this.kACTION_ATTACH;
|
||||
info.parent = (
|
||||
(targetNest < nextNest) ? tab :
|
||||
this.getParentTab(tab)
|
||||
) || tab ;
|
||||
info.parent = (targetNest < nextNest) ? tab : this.getParentTab(tab) ;
|
||||
info.action = this.kACTION_MOVE | (info.parent ? this.kACTION_ATTACH : this.kACTION_PART );
|
||||
info.insertBefore = nextTab;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user