binds js behaviour to ajax generated content [#47]

This commit is contained in:
rgarcia
2015-07-28 21:04:58 +02:00
parent 8a642d3c96
commit 63cac453e6

View File

@@ -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