fixes bug that hides comment form after reply

Closes #160
This commit is contained in:
Juanjo Bazán
2015-08-13 18:27:16 +02:00
committed by Juanjo Bazán
parent d832d41209
commit f2ea7fd95e
2 changed files with 4 additions and 4 deletions

View File

@@ -4,10 +4,10 @@ App.Comments =
$(response_html).insertAfter($("#js-comment-form-#{parent_id}"))
reset_and_hide_form: (id) ->
form = $("#js-comment-form-#{id} form")
input = form.find("textarea")
form_container = $("#js-comment-form-#{id}")
input = form_container.find("form textarea")
input.val('')
form.hide()
form_container.hide()
reset_form: (id) ->
input = $("#js-comment-form-#{id} form textarea")