Hide comments box when showing index

This commit is contained in:
Amaia Castro
2017-01-23 19:18:13 +01:00
parent 7e30c6998b
commit b0b65f9853

View File

@@ -2,6 +2,7 @@ App.LegislationAllegations =
toggle_comments: -> toggle_comments: ->
$('.draft-allegation').toggleClass('comments-on'); $('.draft-allegation').toggleClass('comments-on');
$('#comments-box').html('').hide()
show_comments: -> show_comments: ->
$('.draft-allegation').addClass('comments-on'); $('.draft-allegation').addClass('comments-on');