]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Updated plugin to open external links on a new window that are not
authorSarven Capadisli <csarven@status.net>
Sun, 14 Mar 2010 18:06:14 +0000 (14:06 -0400)
committerSarven Capadisli <csarven@status.net>
Thu, 25 Mar 2010 20:33:07 +0000 (21:33 +0100)
attachments

plugins/OpenExternalLinkTarget/OpenExternalLinkTargetPlugin.php

index ebb0189e0353f89a9251d885121df6acaa85f1fb..6756f19930f1f07041fc146cd04d79ec3b7e2494 100644 (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;
     }