Not enough speed increase to justify this.
This commit is contained in:
parent
b2cb0e4a32
commit
cb4fd837c6
@ -2,15 +2,6 @@ QuoteInline =
|
|||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW not in ['index', 'thread'] or !Conf['Quote Inlining']
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Quote Inlining']
|
||||||
|
|
||||||
@process = if Conf['Quote Hash Navigation']
|
|
||||||
(link, clone) ->
|
|
||||||
$.after link, QuoteInline.qiQuote link, $.hasClass link, 'filtered' unless clone
|
|
||||||
$.on link, 'click', QuoteInline.toggle
|
|
||||||
|
|
||||||
else
|
|
||||||
(link) ->
|
|
||||||
$.on link, 'click', QuoteInline.toggle
|
|
||||||
|
|
||||||
if Conf['Comment Expansion']
|
if Conf['Comment Expansion']
|
||||||
ExpandComment.callbacks.push @node
|
ExpandComment.callbacks.push @node
|
||||||
|
|
||||||
@ -25,6 +16,11 @@ QuoteInline =
|
|||||||
process link, isClone for link in @nodes.backlinks
|
process link, isClone for link in @nodes.backlinks
|
||||||
return
|
return
|
||||||
|
|
||||||
|
process: (link, clone) ->
|
||||||
|
if Conf['Quote Hash Navigation']
|
||||||
|
$.after link, QuoteInline.qiQuote link, $.hasClass link, 'filtered' unless clone
|
||||||
|
$.on link, 'click', QuoteInline.toggle
|
||||||
|
|
||||||
qiQuote: (link, hidden) ->
|
qiQuote: (link, hidden) ->
|
||||||
name = "hashlink"
|
name = "hashlink"
|
||||||
name += " filtered" if hidden
|
name += " filtered" if hidden
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user