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 5b078eadd9
commit 6e5e75f341

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;
}