Commit 14fcc0b2 authored by csillag's avatar csillag

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

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