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 ...@@ -498,6 +498,9 @@ class Annotation
if annotator.isComment(annotation) and if annotator.isComment(annotation) and
$rootScope.view isnt "Comments" $rootScope.view isnt "Comments"
$rootScope.applyView "Comments" $rootScope.applyView "Comments"
if not annotator.isComment(annotation) and
$rootScope.view is "Comments"
$rootScope.applyView "Screen"
$timeout (-> annotator.publish 'annotationCreated', annotation), $timeout (-> annotator.publish 'annotationCreated', annotation),
1000 1000
when 'delete' 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