Commit 47e28bc2 authored by csillag's avatar csillag

Don't switch to comment scope on normal annotations. Fixes #1110.

parent 11349f4d
......@@ -495,7 +495,8 @@ class Annotation
switch $scope.action
when 'create'
unless $rootScope.view is "Comments"
if annotator.isComment(annotation) and
$rootScope.view isnt "Comments"
$rootScope.applyView "Comments"
$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