Commit b603c983 authored by csillag's avatar csillag

Leave the comments scope when creating a normal annotation, as per #1101

parent 47e28bc2
......@@ -498,6 +498,9 @@ class Annotation
if annotator.isComment(annotation) and
$rootScope.view isnt "Comments"
$rootScope.applyView "Comments"
if not annotator.isComment(annotation) and
$rootScope.view is "Comments"
$rootScope.applyView "Screen"
$timeout (-> annotator.publish 'annotationCreated', annotation),
1000
when 'delete'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment