Remove remaining places where list of boards without archive is hardcoded. #525
This commit is contained in:
parent
e43d91c9d3
commit
67d5af480f
@ -282,7 +282,7 @@ Header =
|
||||
return a.firstChild # Its text node.
|
||||
|
||||
if /-expired/.test t
|
||||
if boardID not in ['b', 'f', 'trash', 'bant']
|
||||
if BoardConfig.isArchived(boardID)
|
||||
a.href = "//#{BoardConfig.domain(boardID)}/#{boardID}/archive"
|
||||
else
|
||||
return a.firstChild # Its text node.
|
||||
|
||||
@ -84,7 +84,7 @@ Index =
|
||||
@navLinks = $.el 'div', className: 'navLinks json-index'
|
||||
$.extend @navLinks, <%= readHTML('NavLinks.html') %>
|
||||
$('.cataloglink a', @navLinks).href = CatalogLinks.catalog()
|
||||
$('.archlistlink', @navLinks).hidden = true if g.BOARD.ID in ['b', 'trash', 'bant']
|
||||
$('.archlistlink', @navLinks).hidden = true unless BoardConfig.isArchived(g.BOARD.ID)
|
||||
$.on $('#index-last-refresh a', @navLinks), 'click', @cb.refreshFront
|
||||
|
||||
# Search field
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user