Super DragAndGoで、現在のタブの中からドラッグされた内容のみ新しいタブで開くようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1950 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
7793710e1c
commit
ccf7687592
@ -465,6 +465,8 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() {
|
|||||||
superDrag.onDrop.toSource().replace(
|
superDrag.onDrop.toSource().replace(
|
||||||
/(var newTab = getBrowser\(\).addTab\([^\)]+\);)/g,
|
/(var newTab = getBrowser\(\).addTab\([^\)]+\);)/g,
|
||||||
<><![CDATA[
|
<><![CDATA[
|
||||||
|
if (aDragSession.sourceNode &&
|
||||||
|
aDragSession.sourceNode.ownerDocument.defaultView.top == getBrowser().contentWindow)
|
||||||
TreeStyleTabService.readyToOpenChildTab(getBrowser());
|
TreeStyleTabService.readyToOpenChildTab(getBrowser());
|
||||||
$1
|
$1
|
||||||
]]></>
|
]]></>
|
||||||
|
Loading…
Reference in New Issue
Block a user