From bf94530cb9aa9bdd2b5b529f853892045241e630 Mon Sep 17 00:00:00 2001 From: sacarney Date: Fri, 17 Mar 2017 09:37:25 -0500 Subject: [PATCH] INTERIM-12 Updated jQuery selector jQuery no longer adds a class to links with images inside. --- js/suitcase_external_links.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/suitcase_external_links.js b/js/suitcase_external_links.js index 9f49270..5916296 100644 --- a/js/suitcase_external_links.js +++ b/js/suitcase_external_links.js @@ -7,9 +7,9 @@ $(document).ready(function() { - $('a').filter(function() { + $('a:not(:has(img)').filter(function() { return this.hostname && this.hostname !== location.hostname; }).addClass('external'); }); -})(jQuery); \ No newline at end of file +})(jQuery);