diff --git a/external.js b/external.js index 98047ae..b922a37 100644 --- a/external.js +++ b/external.js @@ -1,6 +1,6 @@ Drupal.behaviors.external = function(context) { // Open external links in new tabs. - $("a[href^=http://]", context).each(function() { + $("a[href^=http://]:not([rel*='lightbox'])", context).each(function() { if(this.href.toLowerCase().indexOf(location.hostname) == -1) { $(this).click(externalNewWindow); }