Updated plugin to open external links on a new window that are not

attachments
This commit is contained in:
Sarven Capadisli 2010-03-14 14:06:14 -04:00
parent 321093886f
commit 9ea48298d5
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class OpenExternalLinkTargetPlugin extends Plugin
{
function onEndShowScripts($action)
{
$action->inlineScript('$("a[rel~=external]").click(function(){ window.open(this.href); return false; });');
$action->inlineScript('$("a[rel~=external]:not([class~=attachment])").live("click", function(){ window.open(this.href); return false; });');
return true;
}