Commit 14fcc0b2 authored by csillag's avatar csillag

Go to Screen scope when creating annotation in Selection scope, as per #1101

parent b603c983
......@@ -495,11 +495,11 @@ class Annotation
switch $scope.action
when 'create'
if annotator.isComment(annotation) and
$rootScope.view isnt "Comments"
if annotator.isComment(annotation)
if $rootScope.view isnt "Comments"
$rootScope.applyView "Comments"
if not annotator.isComment(annotation) and
$rootScope.view is "Comments"
else
if $rootScope.view in ["Comments", "Selection"]
$rootScope.applyView "Screen"
$timeout (-> annotator.publish 'annotationCreated', annotation),
1000
......
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