Updated plugin to open external links on a new window that are not
attachments
This commit is contained in:
parent
5b078eadd9
commit
6e5e75f341
|
@ -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