Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
b4b35c00
Commit
b4b35c00
authored
Mar 25, 2013
by
Ujvari Gergely
Committed by
Randall Leeds
Apr 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prelimitary demo version
parent
4ca6ed54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
common.scss
h/css/common.scss
+13
-0
controllers.coffee
h/js/controllers.coffee
+13
-0
No files found.
h/css/common.scss
View file @
b4b35c00
...
...
@@ -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
{
...
...
h/js/controllers.coffee
View file @
b4b35c00
...
...
@@ -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
)
->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment