board -> boardID in Header.generateBoardList().
Conflicts: src/General/Header.coffee
This commit is contained in:
parent
9daf6dd05f
commit
84813bf470
@ -186,18 +186,18 @@ Header =
|
|||||||
textContent: (t.match(/-text:"(.+)"\,/) || [null, '+'])[1]
|
textContent: (t.match(/-text:"(.+)"\,/) || [null, '+'])[1]
|
||||||
className: 'external'
|
className: 'external'
|
||||||
return a
|
return a
|
||||||
board = if /^current/.test t
|
boardID = if /^current/.test t
|
||||||
g.BOARD.ID
|
g.BOARD.ID
|
||||||
else
|
else
|
||||||
t.match(/^[^-]+/)[0]
|
t.match(/^[^-]+/)[0]
|
||||||
for a in as
|
for a in as
|
||||||
if a.textContent is board
|
if a.textContent is boardID
|
||||||
a = a.cloneNode true
|
a = a.cloneNode true
|
||||||
|
|
||||||
a.textContent = if /-title/.test(t) or /-replace/.test(t) and $.hasClass a, 'current'
|
a.textContent = if /-title/.test(t) or /-replace/.test(t) and $.hasClass a, 'current'
|
||||||
a.title
|
a.title
|
||||||
else if /-full/.test t
|
else if /-full/.test t
|
||||||
"/#{board}/ - #{a.title}"
|
"/#{boardID}/ - #{a.title}"
|
||||||
else if m = t.match /-text:"(.+)"/
|
else if m = t.match /-text:"(.+)"/
|
||||||
m[1]
|
m[1]
|
||||||
else
|
else
|
||||||
@ -205,13 +205,13 @@ Header =
|
|||||||
|
|
||||||
if m = t.match /-(index|catalog)/
|
if m = t.match /-(index|catalog)/
|
||||||
a.dataset.only = m[1]
|
a.dataset.only = m[1]
|
||||||
a.href = CatalogLinks[m[1]] board
|
a.href = CatalogLinks[m[1]] boardID
|
||||||
$.addClass a, 'catalog' if m[1] is 'catalog'
|
$.addClass a, 'catalog' if m[1] is 'catalog'
|
||||||
|
|
||||||
if /-archive/.test(t) and href = Redirect.to 'board', {boardID: board}
|
if /-archive/.test(t) and href = Redirect.to 'board', {boardID}
|
||||||
a.href = href
|
a.href = href
|
||||||
|
|
||||||
$.addClass a, 'navSmall' if board is '@'
|
$.addClass a, 'navSmall' if boardID is '@'
|
||||||
return a
|
return a
|
||||||
$.tn t
|
$.tn t
|
||||||
$.add list, nodes
|
$.add list, nodes
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user