adds hide/show behaviour to comment forms

This commit is contained in:
rgarcia
2015-07-25 18:49:00 +02:00
parent bd92f6ec5c
commit 3cec9b98f2
2 changed files with 20 additions and 7 deletions

View File

@@ -0,0 +1,9 @@
jQuery ->
toggle_comment = (id) ->
$("#js-comment-form-#{id}").toggle()
$('.js-add-comment-link').click ->
id = $(this).data().id
toggle_comment(id)
false