Clear box before showing comments for anchor

This commit is contained in:
Amaia Castro
2017-02-24 16:31:47 +01:00
parent c7eaadb4b2
commit 5f61e9f270

View File

@@ -141,6 +141,7 @@ App.LegislationAnnotatable =
if $("span[data-annotation-id='" + ann_id + "']").length
el = $("span[data-annotation-id='" + ann_id + "']")
el.addClass('current-annotation')
$('#comments-box').html('')
App.LegislationAllegations.show_comments()
$('html,body').animate({scrollTop: el.offset().top})
$.event.trigger