Skip to content

Commit

Permalink
INTERIM-12 jQuery bug fix
Browse files Browse the repository at this point in the history
Had to move the .not out of the selector and out to the back.
  • Loading branch information
sacarney authored and angelamnr committed Mar 29, 2017
1 parent bf94530 commit 55ee73d
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:not(:has(img)').filter(function() {
$('a').filter(function() {
return this.hostname && this.hostname !== location.hostname;
}).addClass('external');
}).not('a:has(img)').addClass('external');
});

})(jQuery);

0 comments on commit 55ee73d

Please sign in to comment.