Disable catalog-only header links on /f/.

This commit is contained in:
ccd0 2015-03-15 11:51:18 -07:00
parent e8f17094fb
commit 691472bbd3

View File

@ -245,9 +245,12 @@ Header =
text or boardID
if m = t.match /-(index|catalog)/
a.dataset.only = m[1]
a.href = CatalogLinks[m[1]] boardID
$.addClass a, 'catalog' if m[1] is 'catalog'
unless boardID is 'f' and m[1] is 'catalog'
a.dataset.only = m[1]
a.href = CatalogLinks[m[1]] boardID
$.addClass a, 'catalog' if m[1] is 'catalog'
else
return a.firstChild # Its text node.
if /-archive/.test t
if href = Redirect.to 'board', {boardID}