Fix the '-text' option with custom navigation #865

This commit is contained in:
Zixaphir 2015-01-22 12:36:08 -07:00
parent 7729784ee7
commit 42beae7760
3 changed files with 3 additions and 5 deletions

View File

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

View File

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

View File

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