Archive links with no archive should keep custom text.
Don't return too early then.
This commit is contained in:
parent
759dc8abd7
commit
8b5912b77d
@ -133,12 +133,6 @@ Header =
|
||||
break
|
||||
return $.tn boardID if a.parentNode # Not a clone.
|
||||
|
||||
if /-archive/.test t
|
||||
if href = Redirect.to 'board', {boardID}
|
||||
a.href = href
|
||||
else
|
||||
return a.firstChild # Its text node.
|
||||
|
||||
a.textContent = if /-title/.test(t) or /-replace/.test(t) and boardID is g.BOARD.ID
|
||||
a.title
|
||||
else if /-full/.test t
|
||||
@ -148,6 +142,12 @@ Header =
|
||||
else
|
||||
boardID
|
||||
|
||||
if /-archive/.test t
|
||||
if href = Redirect.to 'board', {boardID}
|
||||
a.href = href
|
||||
else
|
||||
return a.firstChild # Its text node.
|
||||
|
||||
if m = t.match /-mode:"([^"]+)"/
|
||||
type = m[1].toLowerCase()
|
||||
a.dataset.indexMode = switch type
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user