diff --git a/src/General/lib/clone.class b/src/General/lib/clone.class index 43ec53bd3..f04736d1d 100755 --- a/src/General/lib/clone.class +++ b/src/General/lib/clone.class @@ -15,6 +15,7 @@ class Clone extends Post root: root post: post info: info + quote: $ 'a[title="Reply to this post"]', info comment: $ '.postMessage', post quotelinks: [] backlinks: info.getElementsByClassName 'backlink' diff --git a/src/General/lib/post.class b/src/General/lib/post.class index 291093e3f..b8cdc2e1c 100755 --- a/src/General/lib/post.class +++ b/src/General/lib/post.class @@ -37,6 +37,7 @@ class Post post: post info: info nameBlock: $ '.nameBlock', info + quote: $ 'a[title="Reply to this post"]', info comment: $ '.postMessage', post links: [] quotelinks: [] diff --git a/src/General/lib/thread.class b/src/General/lib/thread.class index b4a90c9cf..f083ed1f8 100755 --- a/src/General/lib/thread.class +++ b/src/General/lib/thread.class @@ -21,10 +21,10 @@ class Thread g.threads.push @fullID, board.threads.push @, @ setPage: (pageNum) -> - {info} = @OP.nodes + {info, quote} = @OP.nodes unless icon = $ '.page-num', info icon = $.el 'span', className: 'page-num' - $.after $('a[title="Reply to this post"]', info), [$.tn(' '), icon] + $.after quote, [$.tn(' '), icon] icon.title = "This thread is on page #{pageNum} in the original index." icon.textContent = "[#{pageNum}]" @catalogView.nodes.pageCount.textContent = pageNum if @catalogView @@ -60,7 +60,7 @@ class Thread root = if type isnt 'Sticky' and @isSticky $ '.stickyIcon', @OP.nodes.info else - $('.page-num', @OP.nodes.info) or $('[title="Reply to this post"]', @OP.nodes.info) + $('.page-num', @OP.nodes.info) or @OP.nodes.quote $.after root, [$.tn(' '), icon] return unless @catalogView diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index cf23533c0..0bc1183a4 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -93,7 +93,7 @@ QR = QR.status() node: -> - $.on $('a[title="Reply to this post"]', @nodes.info), 'click', QR.quote + $.on @nodes.quote, 'click', QR.quote open: -> if QR.nodes