Fix top catalog link replacement with JSON Navigation off, External Catalog on.

This commit is contained in:
ccd0 2015-02-08 21:04:03 -08:00
parent fb5c530e92
commit 77b5821344

View File

@ -4,7 +4,7 @@ CatalogLinks =
selector = switch g.VIEW selector = switch g.VIEW
when 'thread', 'archive' then '.navLinks.desktop > a' when 'thread', 'archive' then '.navLinks.desktop > a'
when 'catalog' then '.navLinks > :first-child > a' when 'catalog' then '.navLinks > :first-child > a'
when 'index' then '.middlead + .desktop > a, .cataloglink > a' when 'index' then '#ctrl-top > a, .cataloglink > a'
$.ready -> $.ready ->
for link in $$ selector for link in $$ selector
switch link.pathname switch link.pathname