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:
piro 2007-11-15 12:24:12 +00:00
parent 15c754fbba
commit 023e361505

View File

@ -660,7 +660,8 @@ catch(e) {
).replace(
'return false;case 1:',
<><![CDATA[
if (TreeStyleTabService.checkToOpenChildTab()) {
if (!('TMP_contentAreaClick' in window) &&
TreeStyleTabService.checkToOpenChildTab()) {
TreeStyleTabService.stopToOpenChildTab();
urlSecurityCheck(href, linkNode.ownerDocument.location.href);
var postData = {};
@ -675,16 +676,18 @@ catch(e) {
);
}
funcs = 'contentAreaClick __ctxextensions__contentAreaClick'.split(' ');
funcs = 'contentAreaClick __contentAreaClick __ctxextensions__contentAreaClick'.split(' ');
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]+' = '+
window[funcs[i]].toSource().replace(
/(openWebPanel\([^\(]+\("webPanels"\), wrapper.href\);event.preventDefault\(\);return false;\})/,
<><![CDATA[
$1
else if (TreeStyleTabService.checkReadyToOpenNewTab({
else if (!('TMP_contentAreaClick' in window) &&
TreeStyleTabService.checkReadyToOpenNewTab({
uri : wrapper.href,
external : {
newTab : TreeStyleTabService.getTreePref('openOuterLinkInNewTab') || TreeStyleTabService.getTreePref('openAnyLinkInNewTab'),