binds js behaviour to ajax generated content [#47]
This commit is contained in:
@@ -4,7 +4,7 @@ jQuery ->
|
|||||||
$("#js-comment-form-#{id}").toggle()
|
$("#js-comment-form-#{id}").toggle()
|
||||||
|
|
||||||
ready = ->
|
ready = ->
|
||||||
$('.js-add-comment-link').click ->
|
$('body').on 'click', '.js-add-comment-link', ->
|
||||||
id = $(this).data().id
|
id = $(this).data().id
|
||||||
toggle_comment(id)
|
toggle_comment(id)
|
||||||
false
|
false
|
||||||
|
|||||||
Reference in New Issue
Block a user