Further archive link work.
This commit is contained in:
parent
3284de0d06
commit
4eb0574505
@ -45,7 +45,7 @@ Redirect =
|
|||||||
cb?()
|
cb?()
|
||||||
|
|
||||||
to: (dest, data) ->
|
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
|
return '' unless archive
|
||||||
Redirect[dest] archive, data
|
Redirect[dest] archive, data
|
||||||
|
|
||||||
|
|||||||
@ -140,9 +140,8 @@ Header =
|
|||||||
else
|
else
|
||||||
a.textContent
|
a.textContent
|
||||||
|
|
||||||
if /-archive/.test t
|
if /-archive/.test(t) and href = Redirect.to 'board', {boardID: board}
|
||||||
a.href = Redirect.to 'board',
|
a.href = href
|
||||||
boardID: board
|
|
||||||
|
|
||||||
$.addClass a, 'navSmall' if board is '@'
|
$.addClass a, 'navSmall' if board is '@'
|
||||||
return a
|
return a
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user