/trash/ has no internal archive. #576
This commit is contained in:
parent
9cb9c39d87
commit
a88db556b5
@ -259,7 +259,7 @@ Header =
|
||||
return a.firstChild # Its text node.
|
||||
|
||||
if /-expired/.test t
|
||||
if boardID not in ['b', 'f']
|
||||
if boardID not in ['b', 'f', 'trash']
|
||||
a.href = "/#{boardID}/archive"
|
||||
else
|
||||
return a.firstChild # Its text node.
|
||||
|
||||
@ -58,7 +58,7 @@ Index =
|
||||
@navLinks = $.el 'div', className: 'navLinks'
|
||||
$.extend @navLinks, <%= importHTML('Features/Index-navlinks') %>
|
||||
$('.cataloglink a', @navLinks).href = CatalogLinks.catalog()
|
||||
$('.archlistlink', @navLinks).hidden = true if g.BOARD.ID is 'b'
|
||||
$('.archlistlink', @navLinks).hidden = true if g.BOARD.ID in ['b', 'trash']
|
||||
@searchInput = $ '#index-search', @navLinks
|
||||
@setupSearch()
|
||||
@hideLabel = $ '#hidden-label', @navLinks
|
||||
|
||||
@ -30,7 +30,7 @@ Main =
|
||||
else
|
||||
'index'
|
||||
return if g.VIEW is 'catalog' and g.BOARD.ID is 'f'
|
||||
return if g.VIEW is 'archive' and g.BOARD.ID in ['b', 'f']
|
||||
return if g.VIEW is 'archive' and g.BOARD.ID in ['b', 'f', 'trash']
|
||||
if g.VIEW is 'thread'
|
||||
g.THREADID = +pathname[3]
|
||||
|
||||
|
||||
@ -83,7 +83,7 @@ class DataBoard
|
||||
ajaxClean: (boardID) ->
|
||||
$.cache "//a.4cdn.org/#{boardID}/threads.json", (e1) =>
|
||||
if e1.target.status is 200
|
||||
if boardID in ['b', 'f']
|
||||
if boardID in ['b', 'f', 'trash']
|
||||
@ajaxCleanParse boardID, e1.target.response
|
||||
else
|
||||
$.cache "//a.4cdn.org/#{boardID}/archive.json", (e2) =>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user