target属性によってタブで開かれるリンクについて、Tab Mix Plusとの併用時に
現在のタブにまで読み込まれてしまう問題を修正 git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1586 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
15c754fbba
commit
023e361505
@ -660,7 +660,8 @@ catch(e) {
|
|||||||
).replace(
|
).replace(
|
||||||
'return false;case 1:',
|
'return false;case 1:',
|
||||||
<><![CDATA[
|
<><![CDATA[
|
||||||
if (TreeStyleTabService.checkToOpenChildTab()) {
|
if (!('TMP_contentAreaClick' in window) &&
|
||||||
|
TreeStyleTabService.checkToOpenChildTab()) {
|
||||||
TreeStyleTabService.stopToOpenChildTab();
|
TreeStyleTabService.stopToOpenChildTab();
|
||||||
urlSecurityCheck(href, linkNode.ownerDocument.location.href);
|
urlSecurityCheck(href, linkNode.ownerDocument.location.href);
|
||||||
var postData = {};
|
var postData = {};
|
||||||
@ -675,16 +676,18 @@ catch(e) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
funcs = 'contentAreaClick __ctxextensions__contentAreaClick'.split(' ');
|
funcs = 'contentAreaClick __contentAreaClick __ctxextensions__contentAreaClick'.split(' ');
|
||||||
for (var i in funcs)
|
for (var i in funcs)
|
||||||
{
|
{
|
||||||
if (funcs[i] in window && /^function contentAreaClick/.test(window[funcs[i]].toString()))
|
if (funcs[i] in window && window[funcs[i]] &&
|
||||||
|
/^function contentAreaClick/.test(window[funcs[i]].toString()))
|
||||||
eval('window.'+funcs[i]+' = '+
|
eval('window.'+funcs[i]+' = '+
|
||||||
window[funcs[i]].toSource().replace(
|
window[funcs[i]].toSource().replace(
|
||||||
/(openWebPanel\([^\(]+\("webPanels"\), wrapper.href\);event.preventDefault\(\);return false;\})/,
|
/(openWebPanel\([^\(]+\("webPanels"\), wrapper.href\);event.preventDefault\(\);return false;\})/,
|
||||||
<><![CDATA[
|
<><![CDATA[
|
||||||
$1
|
$1
|
||||||
else if (TreeStyleTabService.checkReadyToOpenNewTab({
|
else if (!('TMP_contentAreaClick' in window) &&
|
||||||
|
TreeStyleTabService.checkReadyToOpenNewTab({
|
||||||
uri : wrapper.href,
|
uri : wrapper.href,
|
||||||
external : {
|
external : {
|
||||||
newTab : TreeStyleTabService.getTreePref('openOuterLinkInNewTab') || TreeStyleTabService.getTreePref('openAnyLinkInNewTab'),
|
newTab : TreeStyleTabService.getTreePref('openOuterLinkInNewTab') || TreeStyleTabService.getTreePref('openAnyLinkInNewTab'),
|
||||||
|
Loading…
Reference in New Issue
Block a user