Merge pull request #96 from medialab-prado/94-hide-comments-when-showing-index

Hide comments box when showing index
This commit is contained in:
Amaia Castro
2017-01-26 13:23:22 +01:00
committed by GitHub

View File

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