Fix the '-text' option with custom navigation #865
This commit is contained in:
parent
7729784ee7
commit
42beae7760
@ -4635,7 +4635,7 @@
|
||||
if (Conf['JSON Navigation']) {
|
||||
$.on(a, 'click', Navigate.navigate);
|
||||
}
|
||||
a.textContent = /-title/.test(t) || /-replace/.test(t) && boardID === g.BOARD.ID ? a.title : /-full/.test(t) ? "/" + boardID + "/ - " + a.title : (m = t.match(/-text:"([^"]+)"/)) ? m[1] : boardID;
|
||||
a.textContent = /-title/.test(t) || /-replace/.test(t) && boardID === g.BOARD.ID ? a.title : /-full/.test(t) ? "/" + boardID + "/ - " + a.title : text || boardID;
|
||||
if (/-archive/.test(t)) {
|
||||
if (href = Redirect.to('board', {
|
||||
boardID: boardID
|
||||
|
||||
@ -4660,7 +4660,7 @@
|
||||
if (Conf['JSON Navigation']) {
|
||||
$.on(a, 'click', Navigate.navigate);
|
||||
}
|
||||
a.textContent = /-title/.test(t) || /-replace/.test(t) && boardID === g.BOARD.ID ? a.title : /-full/.test(t) ? "/" + boardID + "/ - " + a.title : (m = t.match(/-text:"([^"]+)"/)) ? m[1] : boardID;
|
||||
a.textContent = /-title/.test(t) || /-replace/.test(t) && boardID === g.BOARD.ID ? a.title : /-full/.test(t) ? "/" + boardID + "/ - " + a.title : text || boardID;
|
||||
if (/-archive/.test(t)) {
|
||||
if (href = Redirect.to('board', {
|
||||
boardID: boardID
|
||||
|
||||
@ -206,10 +206,8 @@ Header =
|
||||
a.title
|
||||
else if /-full/.test t
|
||||
"/#{boardID}/ - #{a.title}"
|
||||
else if m = t.match /-text:"([^"]+)"/
|
||||
m[1]
|
||||
else
|
||||
boardID
|
||||
text or boardID
|
||||
|
||||
if /-archive/.test t
|
||||
if href = Redirect.to 'board', {boardID}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user