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
be659605
Commit
be659605
authored
Mar 18, 2013
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Annotator-required fields on top annotations
Closes #312
parent
9f19f92e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
services.coffee
h/js/services.coffee
+5
-5
No files found.
h/js/services.coffee
View file @
be659605
...
...
@@ -38,6 +38,11 @@ class Hypothesis extends Annotator
this
.
subscribe
'beforeAnnotationCreated'
,
(
annotation
)
=>
permissions
=
@
plugins
.
Permissions
annotation
.
user
=
permissions
.
options
.
userId
(
permissions
.
user
)
# Annotator assumes a valid array of targets and highlights.
unless
annotation
.
target
?
annotation
.
target
=
[]
unless
annotation
.
highlights
?
annotation
.
highlights
=
[]
drafts
.
add
annotation
# Update the heatmap when the host is updated or annotations are loaded
...
...
@@ -215,11 +220,6 @@ class Hypothesis extends Annotator
getHtmlQuote
:
(
quote
)
->
quote
setupAnnotation
:
(
annotation
)
->
# Delagate to Annotator implementation after we give it a valid array of
# targets. This is needed until Annotator stops assuming targets need to be
unless
annotation
.
target
?
annotation
.
highlights
=
[]
annotation
.
target
=
[]
@
plugins
.
Threading
.
thread
annotation
annotation
...
...
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