Fix "Allow post fetching to work if no archive is selected for thread redirection."
fixes commit c21a8b217f87336b71212169ed71db0c81cb63ee
This commit is contained in:
parent
d7d14f10db
commit
6228248c15
@ -58,17 +58,20 @@ Quotify =
|
|||||||
|
|
||||||
$.extend a.dataset, {boardID, threadID: post.thread.ID, postID}
|
$.extend a.dataset, {boardID, threadID: post.thread.ID, postID}
|
||||||
|
|
||||||
else if (redirect = Redirect.to 'thread', {boardID, threadID: 0, postID}) or (fetchable = Redirect.to 'post', {boardID, postID})
|
else
|
||||||
# Replace the .deadlink span if we can redirect or fetch the post.
|
redirect = Redirect.to 'thread', {boardID, threadID: 0, postID}
|
||||||
a = $.el 'a',
|
fetchable = Redirect.to 'post', {boardID, postID}
|
||||||
href: redirect or 'javascript:;'
|
if redirect or fetchable
|
||||||
className: 'deadlink'
|
# Replace the .deadlink span if we can redirect or fetch the post.
|
||||||
target: '_blank'
|
a = $.el 'a',
|
||||||
textContent: "#{quote}\u00A0(Dead)"
|
href: redirect or 'javascript:;'
|
||||||
if fetchable
|
className: 'deadlink'
|
||||||
# Make it function as a normal quote if we can fetch the post.
|
target: '_blank'
|
||||||
$.addClass a, 'quotelink'
|
textContent: "#{quote}\u00A0(Dead)"
|
||||||
$.extend a.dataset, {boardID, postID}
|
if fetchable
|
||||||
|
# Make it function as a normal quote if we can fetch the post.
|
||||||
|
$.addClass a, 'quotelink'
|
||||||
|
$.extend a.dataset, {boardID, postID}
|
||||||
|
|
||||||
@quotes.push quoteID unless quoteID in @quotes
|
@quotes.push quoteID unless quoteID in @quotes
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user