diff --git a/src/Quotelinks/QuoteBacklink.coffee b/src/Quotelinks/QuoteBacklink.coffee index eed30a8cd..ab141ad60 100644 --- a/src/Quotelinks/QuoteBacklink.coffee +++ b/src/Quotelinks/QuoteBacklink.coffee @@ -14,6 +14,11 @@ QuoteBacklink = init: -> return if g.VIEW not in ['index', 'thread'] or !Conf['Quote Backlinks'] + # Add a class to differentiate when backlinks are at + # the top (default) or bottom of a post + if (@bottomBacklinks = Conf['Bottom Backlinks']) + $.addClass doc, 'bottom-backlinks' + Callbacks.Post.push name: 'Quote Backlinking Part 1' cb: @firstNode @@ -48,10 +53,6 @@ QuoteBacklink = $.add container, nodes return secondNode: -> - # Add a class to differentiate when backlinks are at - # the top (default) or bottom of a post - if Conf['Bottom Backlinks'] - $.addClass doc, 'bottom-backlinks' if @isClone and (@origin.isReply or Conf['OP Backlinks']) @nodes.backlinkContainer = $ '.container', @nodes.info return @@ -59,7 +60,7 @@ QuoteBacklink = return unless @isReply or Conf['OP Backlinks'] container = QuoteBacklink.getContainer @fullID @nodes.backlinkContainer = container - if Conf['Bottom Backlinks'] + if QuoteBacklink.bottomBacklinks $.add @nodes.post, container else $.add @nodes.info, container