Run on clones as well.
This commit is contained in:
parent
cae1df14e3
commit
2293ea3393
@ -22,13 +22,19 @@ Embedding =
|
|||||||
return
|
return
|
||||||
|
|
||||||
events: (post) ->
|
events: (post) ->
|
||||||
return unless Conf['Embedding']
|
if Conf['Embedding']
|
||||||
i = 0
|
i = 0
|
||||||
items = $$ '.embedder', post.nodes.comment
|
items = $$ '.embedder', post.nodes.comment
|
||||||
while el = items[i++]
|
while el = items[i++]
|
||||||
$.on el, 'click', Embedding.cb.click
|
$.on el, 'click', Embedding.cb.click
|
||||||
Embedding.cb.toggle.call el if $.hasClass el, 'embedded'
|
Embedding.cb.toggle.call el if $.hasClass el, 'embedded'
|
||||||
return
|
if Conf['Cover Preview']
|
||||||
|
i = 0
|
||||||
|
items = $$ '.linkify', post.nodes.comment
|
||||||
|
while el = items[i++]
|
||||||
|
data = Embedding.services el
|
||||||
|
Embedding.preview data
|
||||||
|
return
|
||||||
|
|
||||||
process: (link, post) ->
|
process: (link, post) ->
|
||||||
return unless Conf['Embedding'] or Conf['Link Title'] or Conf['Cover Preview']
|
return unless Conf['Embedding'] or Conf['Link Title'] or Conf['Cover Preview']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user