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
|
break
|
||||||
return $.tn boardID if a.parentNode # Not a clone.
|
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.textContent = if /-title/.test(t) or /-replace/.test(t) and boardID is g.BOARD.ID
|
||||||
a.title
|
a.title
|
||||||
else if /-full/.test t
|
else if /-full/.test t
|
||||||
@ -148,6 +142,12 @@ Header =
|
|||||||
else
|
else
|
||||||
boardID
|
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:"([^"]+)"/
|
if m = t.match /-mode:"([^"]+)"/
|
||||||
type = m[1].toLowerCase()
|
type = m[1].toLowerCase()
|
||||||
a.dataset.indexMode = switch type
|
a.dataset.indexMode = switch type
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user