Fix Post no.0 with deadlinks. #932

This commit is contained in:
Nicolas Stepien 2013-03-12 04:46:35 +01:00
parent 1733b2276b
commit 9b0aa74875
2 changed files with 5 additions and 9 deletions

View File

@ -3738,13 +3738,9 @@
className: 'quotelink',
textContent: quote
});
} else if (redirect = Redirect.to({
board: board,
threadID: post.thread.ID,
postID: ID
})) {
} else {
a = $.el('a', {
href: redirect,
href: "/" + board + "/" + post.thread + "/res/#p" + ID,
className: 'quotelink deadlink',
target: '_blank',
textContent: "" + quote + "\u00A0(Dead)"

View File

@ -2409,17 +2409,17 @@ Quotify =
href: "/#{board}/#{post.thread}/res/#p#{ID}"
className: 'quotelink'
textContent: quote
else if redirect = Redirect.to {board: board, threadID: post.thread.ID, postID: ID}
else
# Replace the .deadlink span if we can redirect.
a = $.el 'a',
href: redirect
href: "/#{board}/#{post.thread}/res/#p#{ID}"
className: 'quotelink deadlink'
target: '_blank'
textContent: "#{quote}\u00A0(Dead)"
a.setAttribute 'data-board', board
a.setAttribute 'data-threadid', post.thread.ID
a.setAttribute 'data-postid', ID
else if redirect = Redirect.to {board: board, threadID: 0, postID: ID}
else if redirect = Redirect.to {board, threadID: 0, postID: ID}
# Replace the .deadlink span if we can redirect.
a = $.el 'a',
href: redirect