Skip to content

Commit

Permalink
INTERIM-12 Updated jQuery selector
Browse files Browse the repository at this point in the history
jQuery no longer adds a class to links with images inside.
  • Loading branch information
sacarney authored and angelamnr committed Mar 29, 2017
1 parent a77f37d commit bf94530
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/suitcase_external_links.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
})(jQuery);

0 comments on commit bf94530

Please sign in to comment.