Skip to content

Commit

Permalink
Merge pull request #96 from medialab-prado/94-hide-comments-when-show…
Browse files Browse the repository at this point in the history
…ing-index

Hide comments box when showing index
  • Loading branch information
amaia committed Jan 26, 2017
2 parents 08987f7 + b0b65f9 commit 996aa7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/javascripts/legislation_allegations.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ App.LegislationAllegations =

toggle_comments: ->
$('.draft-allegation').toggleClass('comments-on');
$('#comments-box').html('').hide()

show_comments: ->
$('.draft-allegation').addClass('comments-on');
Expand Down

0 comments on commit 996aa7b

Please sign in to comment.