9 lines
176 B
CoffeeScript
9 lines
176 B
CoffeeScript
jQuery ->
|
|
|
|
toggle_comment = (id) ->
|
|
$("#js-comment-form-#{id}").toggle()
|
|
|
|
$('.js-add-comment-link').click ->
|
|
id = $(this).data().id
|
|
toggle_comment(id)
|
|
false |