Commit 9dc95138 authored by Ujvari Gergely's avatar Ujvari Gergely

Easy fix for bug #352

parent 9af2d307
......@@ -212,6 +212,8 @@ class Annotation
annotator.publish 'annotationCreated', $scope.model.$modelValue
when 'delete'
$scope.model.$modelValue.deleted = true
unless $scope.model.$modelValue.text?
$scope.model.$modelValue.text = ''
annotator.updateAnnotation $scope.model.$modelValue
else
annotator.updateAnnotation $scope.model.$modelValue
......
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