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
b0b32c06
Commit
b0b32c06
authored
Apr 30, 2013
by
Ed Summers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
load document plugin
parent
f9421db9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
document.coffee
h/js/plugin/document.coffee
+12
-0
services.coffee
h/js/services.coffee
+1
-0
No files found.
h/js/plugin/document.coffee
0 → 100644
View file @
b0b32c06
class
Annotator
.
Plugin
.
Document
extends
Annotator
.
Plugin
events
:
'beforeAnnotationCreated'
:
'beforeAnnotationCreated'
pluginInit
:
->
console
.
log
"initializing Document plugin!"
beforeAnnotationCreated
:
(
annotation
)
=>
debugger
alert
"creating annotation
#{
annotation
}
"
h/js/services.coffee
View file @
b0b32c06
...
@@ -39,6 +39,7 @@ class Hypothesis extends Annotator
...
@@ -39,6 +39,7 @@ class Hypothesis extends Annotator
showViewPermissionsCheckbox
:
false
,
showViewPermissionsCheckbox
:
false
,
userString
:
(
user
)
->
user
.
replace
(
/^acct:(.+)@(.+)$/
,
'$1 on $2'
)
userString
:
(
user
)
->
user
.
replace
(
/^acct:(.+)@(.+)$/
,
'$1 on $2'
)
Threading
:
{}
Threading
:
{}
Document
:
{}
# Internal state
# Internal state
dragging
:
false
# * To enable dragging only when we really want to
dragging
:
false
# * To enable dragging only when we really want to
...
...
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