From 6aa7c902733737c87bbadcefb2e237a015ab3fee Mon Sep 17 00:00:00 2001 From: MickeyKay Date: Mon, 31 Mar 2014 14:42:28 -0700 Subject: [PATCH] Simplified JS http/https external link code. --- lib/js/theme-jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/js/theme-jquery.js b/lib/js/theme-jquery.js index 5e79e1e..ffb1f24 100644 --- a/lib/js/theme-jquery.js +++ b/lib/js/theme-jquery.js @@ -18,7 +18,7 @@ jQuery(document).ready(function() { // External Links var h = window.location.host.toLowerCase(); - jQuery('[href^="http://"],[href^="https://"]').not('[href*="' + h + '"]').addClass('external-link').attr("target", "_blank"); + jQuery('[href^="http"]').not('[href*="' + h + '"]').addClass('external-link').attr("target", "_blank"); // Add classes to different types of links jQuery('a[href^="mailto:"]').addClass('email-link');