From 0555a9c94dfeb854d28b60b8cb596b3cd2718686 Mon Sep 17 00:00:00 2001 From: piro Date: Sat, 20 Oct 2007 13:41:40 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=89=E3=83=AD=E3=83=83=E3=83=97=E6=99=82?= =?UTF-8?q?=E3=81=AE=E3=82=A2=E3=82=BF=E3=83=83=E3=83=81=E5=85=88=E3=82=BF?= =?UTF-8?q?=E3=83=96=E3=81=AE=E5=88=A4=E5=AE=9A=E3=82=92=E9=96=93=E9=81=95?= =?UTF-8?q?=E3=81=88=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1250 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index ca0de413..2391ffe4 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -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;