Updated plugin to open external links on a new window that are not
attachments
This commit is contained in:
parent
321093886f
commit
9ea48298d5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user