Fix top catalog link replacement with JSON Navigation off, External Catalog on.
This commit is contained in:
parent
fb5c530e92
commit
77b5821344
@ -3,8 +3,8 @@ CatalogLinks =
|
|||||||
if (Conf['External Catalog'] or Conf['JSON Navigation']) and !(Conf['JSON Navigation'] and g.VIEW is 'index')
|
if (Conf['External Catalog'] or Conf['JSON Navigation']) and !(Conf['JSON Navigation'] and g.VIEW is 'index')
|
||||||
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user