タブのドロップの際の処理の間違いを修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1247 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2007-10-20 12:36:58 +00:00
parent e3408ce370
commit 5a64163bec

View File

@ -1299,8 +1299,8 @@ catch(e) {
var targetNest = Number(tab.getAttribute(this.kNEST));
info.action = this.kACTION_MOVE | this.kACTION_ATTACH;
info.parent = (
(prevNest < targetNest) ? this.getParentTab(prevTab) :
(prevNest > targetNest) ? prevTab :
(prevNest > targetNest) ? this.getParentTab(prevTab) :
(prevNest < targetNest) ? prevTab :
this.getParentTab(tab)
) || tab ;
info.insertBefore = tab;
@ -1329,6 +1329,7 @@ catch(e) {
var nextNest = Number(nextTab.getAttribute(this.kNEST));
info.action = this.kACTION_MOVE | this.kACTION_ATTACH;
info.parent = (
(targetNest > nextNest) ? this.getParentTab(nextTab) :
(targetNest < nextNest) ? tab :
this.getParentTab(tab)
) || tab ;