Disable catalog-only header links on /f/.
This commit is contained in:
parent
e8f17094fb
commit
691472bbd3
@ -245,9 +245,12 @@ Header =
|
|||||||
text or boardID
|
text or boardID
|
||||||
|
|
||||||
if m = t.match /-(index|catalog)/
|
if m = t.match /-(index|catalog)/
|
||||||
a.dataset.only = m[1]
|
unless boardID is 'f' and m[1] is 'catalog'
|
||||||
a.href = CatalogLinks[m[1]] boardID
|
a.dataset.only = m[1]
|
||||||
$.addClass a, 'catalog' if m[1] is 'catalog'
|
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 /-archive/.test t
|
||||||
if href = Redirect.to 'board', {boardID}
|
if href = Redirect.to 'board', {boardID}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user