Archive links with no archive should keep custom text.

Don't return too early then.
This commit is contained in:
Mayhem 2014-02-15 16:08:17 +01:00
parent 759dc8abd7
commit 8b5912b77d

View File

@ -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