From 7a41feb18f41f6ff1c616877021cfb900f6f832d Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Thu, 31 Jul 2014 14:04:15 -0700 Subject: [PATCH] Fix an issue where catalog links were affecting external links zixaphir/appchan-x/#773 (CatalogLinks.coffee part) --- src/Miscellaneous/CatalogLinks.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Miscellaneous/CatalogLinks.coffee b/src/Miscellaneous/CatalogLinks.coffee index 635b09043..42fa9be83 100755 --- a/src/Miscellaneous/CatalogLinks.coffee +++ b/src/Miscellaneous/CatalogLinks.coffee @@ -32,7 +32,8 @@ CatalogLinks = for a in $$ """#board-list a:not(.catalog), #boardNavDesktopFoot a""" continue if a.hostname not in ['boards.4chan.org', 'catalog.neet.tv', '4index.gropes.us'] or !(board = a.pathname.split('/')[1]) or - board in ['f', 'status', '4chan'] + board in ['f', 'status', '4chan'] or + $.hasClass a, 'external' # Href is easier than pathname because then we don't have # conditions where External Catalog has been disabled between switches.