Further archive link work.

This commit is contained in:
milky 2014-02-06 05:47:19 +11:00
parent 3284de0d06
commit 4eb0574505
2 changed files with 3 additions and 4 deletions

View File

@ -45,7 +45,7 @@ Redirect =
cb?()
to: (dest, data) ->
archive = (if dest is 'search' or 'board' then Redirect.data.thread else Redirect.data[dest])[data.boardID]
archive = (if dest in ['search', 'board'] then Redirect.data.thread else Redirect.data[dest])[data.boardID]
return '' unless archive
Redirect[dest] archive, data

View File

@ -140,9 +140,8 @@ Header =
else
a.textContent
if /-archive/.test t
a.href = Redirect.to 'board',
boardID: board
if /-archive/.test(t) and href = Redirect.to 'board', {boardID: board}
a.href = href
$.addClass a, 'navSmall' if board is '@'
return a