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
2567071c
Commit
2567071c
authored
Apr 10, 2013
by
Randall Leeds
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'link-annotations-2' into develop
parents
368d2821
d75e9a86
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1032 additions
and
2 deletions
+1032
-2
common.scss
h/css/common.scss
+16
-0
displayer.css
h/css/displayer.css
+984
-0
controllers.coffee
h/js/controllers.coffee
+15
-2
displayer.coffee
h/js/displayer.coffee
+17
-0
No files found.
h/css/common.scss
View file @
2567071c
...
...
@@ -666,7 +666,23 @@ blockquote {
}
}
.share-dialog
{
display
:
none
;
.icon-input
{
position
:
relative
;
.share-text
{
width
:
100%
;
}
}
}
.clipboard-icon
{
text-decoration
:
none
;
cursor
:
pointer
;
color
:
black
;
opacity
:
.5
;
display
:
inline
;
}
//SUMMARY////////////////////////////////
//This is specific to the summary view.
.summary
{
...
...
h/css/displayer.css
0 → 100644
View file @
2567071c
This diff is collapsed.
Click to expand it.
h/js/controllers.coffee
View file @
2567071c
...
...
@@ -187,8 +187,8 @@ class App
class
Annotation
this
.
$inject
=
[
'$element'
,
'$location'
,
'$scope'
,
'annotator'
,
'drafts'
]
constructor
:
(
$element
,
$location
,
$scope
,
annotator
,
drafts
)
->
this
.
$inject
=
[
'$element'
,
'$location'
,
'$scope'
,
'annotator'
,
'drafts'
,
'$timeout'
]
constructor
:
(
$element
,
$location
,
$scope
,
annotator
,
drafts
,
$timeout
)
->
threading
=
annotator
.
threading
$scope
.
action
=
'create'
...
...
@@ -268,11 +268,24 @@ 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
()
$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
$element
.
find
(
'.share-dialog'
).
slideToggle
()
console
.
log
$scope
.
shared
class
Editor
this
.
$inject
=
[
'$location'
,
'$routeParams'
,
'$scope'
,
'annotator'
]
...
...
h/js/displayer.coffee
0 → 100644
View file @
2567071c
angular
.
module
(
'h.displayer'
,[])
.
controller
(
'DisplayerCtrl'
,
(
$scope
,
$element
)
->
$scope
.
toggleCollapse
=
(
event
,
replynumber
,
thread
)
->
#Plus/minus sign and italics
elem
=
(
angular
.
element
event
.
srcElement
).
parent
()
if
elem
.
hasClass
'hyp-collapsed'
elem
.
removeClass
'hyp-collapsed'
expand
=
true
else
elem
.
addClass
'hyp-collapsed'
#Now for the replies
if
replynumber
toggle_elem
=
$element
.
find
(
'.thread_'
+
(
thread
+
1
)).
parent
().
parent
()
if
expand
?
then
toggle_elem
.
removeAttr
'style'
else
toggle_elem
.
css
'display'
,
'none'
)
\ No newline at end of file
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