summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2010-03-14 14:06:14 -0400
committerSarven Capadisli <csarven@status.net>2010-03-25 21:33:07 +0100
commit9ea48298d507ca286e4d7f0dc44291438062782e (patch)
tree50c1001bd0664628667e56d86c936829ce6b3a0b /plugins
parent321093886fd708696c28118893443aa598c6b97f (diff)
Updated plugin to open external links on a new window that are not
attachments
Diffstat (limited to 'plugins')
-rw-r--r--plugins/OpenExternalLinkTarget/OpenExternalLinkTargetPlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/OpenExternalLinkTarget/OpenExternalLinkTargetPlugin.php b/plugins/OpenExternalLinkTarget/OpenExternalLinkTargetPlugin.php
index ebb0189e0..6756f1993 100644
--- a/plugins/OpenExternalLinkTarget/OpenExternalLinkTargetPlugin.php
+++ b/plugins/OpenExternalLinkTarget/OpenExternalLinkTargetPlugin.php
@@ -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;
}