Hide comments box when showing index
This commit is contained in:
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user