/trash/ has no internal archive. #576

This commit is contained in:
ccd0 2015-11-07 13:54:02 -08:00
parent 9cb9c39d87
commit a88db556b5
4 changed files with 4 additions and 4 deletions

View File

@ -259,7 +259,7 @@ Header =
return a.firstChild # Its text node. return a.firstChild # Its text node.
if /-expired/.test t if /-expired/.test t
if boardID not in ['b', 'f'] if boardID not in ['b', 'f', 'trash']
a.href = "/#{boardID}/archive" a.href = "/#{boardID}/archive"
else else
return a.firstChild # Its text node. return a.firstChild # Its text node.

View File

@ -58,7 +58,7 @@ Index =
@navLinks = $.el 'div', className: 'navLinks' @navLinks = $.el 'div', className: 'navLinks'
$.extend @navLinks, <%= importHTML('Features/Index-navlinks') %> $.extend @navLinks, <%= importHTML('Features/Index-navlinks') %>
$('.cataloglink a', @navLinks).href = CatalogLinks.catalog() $('.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 @searchInput = $ '#index-search', @navLinks
@setupSearch() @setupSearch()
@hideLabel = $ '#hidden-label', @navLinks @hideLabel = $ '#hidden-label', @navLinks

View File

@ -30,7 +30,7 @@ Main =
else else
'index' 'index'
return if g.VIEW is 'catalog' and g.BOARD.ID is 'f' 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' if g.VIEW is 'thread'
g.THREADID = +pathname[3] g.THREADID = +pathname[3]

View File

@ -83,7 +83,7 @@ class DataBoard
ajaxClean: (boardID) -> ajaxClean: (boardID) ->
$.cache "//a.4cdn.org/#{boardID}/threads.json", (e1) => $.cache "//a.4cdn.org/#{boardID}/threads.json", (e1) =>
if e1.target.status is 200 if e1.target.status is 200
if boardID in ['b', 'f'] if boardID in ['b', 'f', 'trash']
@ajaxCleanParse boardID, e1.target.response @ajaxCleanParse boardID, e1.target.response
else else
$.cache "//a.4cdn.org/#{boardID}/archive.json", (e2) => $.cache "//a.4cdn.org/#{boardID}/archive.json", (e2) =>