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