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