Highlight current annotation

This commit is contained in:
Fernando Blat
2017-02-06 12:57:30 +01:00
parent 09b14d9687
commit ee90bca24d
2 changed files with 8 additions and 0 deletions

View File

@@ -47,6 +47,10 @@ App.LegislationAnnotatable =
event.preventDefault()
event.stopPropagation()
$('[data-annotation-id]').removeClass('current-annotation')
$(this).addClass('current-annotation')
App.LegislationAllegations.show_comments()
$("#comments-box").show()
$.event.trigger

View File

@@ -101,3 +101,7 @@
.annotator-hl {
cursor: pointer;
}
.current-annotation {
text-decoration: underline;
}