Commit b4b35c00 authored by Ujvari Gergely's avatar Ujvari Gergely Committed by Randall Leeds

Prelimitary demo version

parent 4ca6ed54
......@@ -666,7 +666,20 @@ blockquote {
}
}
.share-dialog {
display: block;
.icon-input {
position: relative;
}
}
.clipboard-icon {
text-decoration: none;
cursor: pointer;
color: black;
opacity: .5;
display: inline;
}
//SUMMARY////////////////////////////////
//This is specific to the summary view.
.summary {
......
......@@ -268,12 +268,25 @@ class Annotation
if id?
$scope.thread = threading.getContainer id
$scope.$watch 'shared', (newValue) ->
if newValue and newValue is true
$timeout -> $element.find('input').focus()
$timeout -> $element.find('input').select()
# Check if this is a brand new annotation
annotation = $scope.thread.message?.annotation
if annotation? and drafts.contains annotation
$scope.editing = true
$scope.shared = false
$scope.share = ->
$scope.shared = not $scope.shared
if $scope.shared and not $scope.shared_link
$scope.shared_link = window.location.host + '/a/' + $scope.$modelValue.id
console.log $scope.shared
class Editor
this.$inject = ['$location', '$routeParams', '$scope', 'annotator']
constructor: ($location, $routeParams, $scope, annotator) ->
......
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