The Catalog Links feature no longer forces a non-catalog index mode if the header menu item is unchecked.

This commit is contained in:
ccd0 2015-02-09 10:19:36 -08:00
parent 16c7c224de
commit 2a584299d6

View File

@ -65,7 +65,7 @@ CatalogLinks =
# Href is easier than pathname because then we don't have
# conditions where External Catalog has been disabled between switches.
a.href = CatalogLinks[if useCatalog then 'catalog' else 'index'] board
a.href = if useCatalog then CatalogLinks.catalog(board) else "/#{board}/"
CatalogLinks.el.title = "Turn catalog links #{if useCatalog then 'off' else 'on'}."
$('input', CatalogLinks.el).checked = useCatalog