Post numbers have a different href outside of board pages.

This commit is contained in:
Nicolas Stepien 2012-09-05 04:59:04 +02:00
parent 6c06547387
commit 011612d7af
2 changed files with 7 additions and 2 deletions

View File

@ -1238,7 +1238,7 @@
html.push("<span class=dateTime data-utc=" + dateUTC + ">" + date + "</span> ");
html.push('<span class="postNum desktop">');
html.push("<a href=/" + board + "/res/" + threadID + "#p" + postID + " title='Highlight this post'>No.</a>");
html.push("<a href=/" + board + "/res/" + threadID + "#q" + postID + " title='Quote this post'>" + postID + "</a>");
html.push("<a href=\"" + (g.REPLY ? "javascript:quote('" + postID + "');" : "/" + board + "/res/" + threadID + "#q" + postID) + "\" title='Quote this post'>" + postID + "</a>");
html.push('</span>');
pi = $.el('div', {
id: "pi" + postID,

View File

@ -1054,7 +1054,12 @@ Build =
# post num
html.push '<span class="postNum desktop">'
html.push "<a href=/#{board}/res/#{threadID}#p#{postID} title='Highlight this post'>No.</a>"
html.push "<a href=/#{board}/res/#{threadID}#q#{postID} title='Quote this post'>#{postID}</a>"
html.push "<a href=\"#{
if g.REPLY
"javascript:quote('#{postID}');"
else
"/#{board}/res/#{threadID}#q#{postID}"
}\" title='Quote this post'>#{postID}</a>"
# XXX closed/sticky?
html.push '</span>'
pi = $.el 'div',