From 9de91c45ba6b1f7cffcb81b9001674b737476ca8 Mon Sep 17 00:00:00 2001 From: piro Date: Sat, 26 Jun 2010 17:29:50 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A6=AA=E3=82=BF=E3=83=96=E3=82=92=E5=AD=90?= =?UTF-8?q?=E3=82=BF=E3=83=96=E3=81=AB=E3=83=89=E3=83=AD=E3=83=83=E3=83=97?= =?UTF-8?q?=E3=81=97=E3=82=88=E3=81=86=E3=81=A8=E3=81=97=E3=81=9F=E6=99=82?= =?UTF-8?q?=E3=81=AB=E6=AD=A3=E3=81=97=E3=81=8F=E3=83=89=E3=83=AD=E3=83=83?= =?UTF-8?q?=E3=83=97=E3=81=8C=E7=84=A1=E5=8A=B9=E5=8C=96=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F?= 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@6754 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 5164cab0..e85f56b8 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -699,11 +699,16 @@ try{ ).singleNodeValue) this.clearDropPosition(); - if (setEffectAllowedFunc ? + if ( + !info.canDrop || + (setEffectAllowedFunc ? (setEffectAllowedFunc(aEvent) == 'none') : !aTabBrowser.canDrop(aEvent, session) ) + ) { + aEvent.dataTransfer.effectAllowed = "none"; return true; + } info.target.setAttribute( this.kDROP_POSITION,