Commit 9db9471e authored by Randall Leeds's avatar Randall Leeds

fix merge mistake

parent bbad0522
......@@ -268,6 +268,11 @@ class Annotation
if id?
$scope.thread = threading.getContainer id
# Check if this is a brand new annotation
annotation = $scope.thread.message?.annotation
if annotation? and drafts.contains annotation
$scope.editing = true
$scope.$watch 'shared', (newValue) ->
if newValue and newValue is true
$timeout -> $element.find('input').focus()
......@@ -276,10 +281,6 @@ class Annotation
$scope.shared_link = window.location.protocol + '//' +
window.location.host + '/a/' + $scope.model.$modelValue.id
$scope.shared = false
# Check if this is a brand new annotation
annotation = $scope.thread.message?.annotation
if annotation? and drafts.contains annotation
$scope.editing = true
$scope.share = ->
$scope.shared = not $scope.shared
......
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