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
4655615b
Commit
4655615b
authored
Aug 28, 2013
by
csillag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't pass ID to host frame. Use 16329tag for everything. Fixes #689.
parent
49515e57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
host.coffee
h/js/host.coffee
+3
-3
services.coffee
h/js/services.coffee
+5
-5
No files found.
h/js/host.coffee
View file @
4655615b
...
...
@@ -68,7 +68,7 @@ class Annotator.Host extends Annotator
_setupXDM
:
->
# Set up the bridge plugin, which bridges the main annotation methods
# between the host page and the panel widget.
whitelist
=
[
'diffHTML'
,
'diffCaseOnly'
,
'quote'
,
'ranges'
,
'target'
,
'
id'
,
'
references'
]
whitelist
=
[
'diffHTML'
,
'diffCaseOnly'
,
'quote'
,
'ranges'
,
'target'
,
'references'
]
this
.
addPlugin
'Bridge'
,
origin
:
'*'
window
:
@
frame
[
0
].
contentWindow
...
...
@@ -310,10 +310,10 @@ class Annotator.Host extends Annotator
width
:
"
#{
w
}
px"
showViewer
:
(
annotations
)
=>
@
panel
?
.
notify
method
:
"showViewer"
,
params
:
(
a
.
id
for
a
in
annotations
)
@
panel
?
.
notify
method
:
"showViewer"
,
params
:
(
a
.
$
$tag
for
a
in
annotations
)
updateViewer
:
(
annotations
)
=>
@
panel
?
.
notify
method
:
"updateViewer"
,
params
:
(
a
.
id
for
a
in
annotations
)
@
panel
?
.
notify
method
:
"updateViewer"
,
params
:
(
a
.
$
$tag
for
a
in
annotations
)
showEditor
:
(
annotation
)
=>
@
plugins
.
Bridge
.
showEditor
annotation
...
...
h/js/services.coffee
View file @
4655615b
...
...
@@ -145,7 +145,7 @@ class Hypothesis extends Annotator
# Set up the bridge plugin, which bridges the main annotation methods
# between the host page and the panel widget.
whitelist
=
[
'diffHTML'
,
'diffCaseOnly'
,
'quote'
,
'ranges'
,
'target'
,
'
id'
,
'
references'
]
whitelist
=
[
'diffHTML'
,
'diffCaseOnly'
,
'quote'
,
'ranges'
,
'target'
,
'references'
]
this
.
addPlugin
'Bridge'
,
origin
:
$location
.
search
().
xdm
window
:
$window
.
parent
...
...
@@ -198,12 +198,12 @@ class Hypothesis extends Annotator
# Pop out the sidebar
$rootScope
.
$apply
=>
this
.
show
())
.
bind
(
'showViewer'
,
(
ctx
,
ids
)
=>
this
.
showViewer
(
(
@
threading
.
getContainer
id
).
message
for
id
in
id
s
)
.
bind
(
'showViewer'
,
(
ctx
,
tags
=
[]
)
=>
this
.
showViewer
(
@
plugins
.
Bridge
.
cache
[
tag
]
for
tag
in
tag
s
)
)
.
bind
(
'updateViewer'
,
(
ctx
,
ids
)
=>
this
.
updateViewer
(
(
@
threading
.
getContainer
id
).
message
for
id
in
id
s
)
.
bind
(
'updateViewer'
,
(
ctx
,
tags
=
[]
)
=>
this
.
updateViewer
(
@
plugins
.
Bridge
.
cache
[
tag
]
for
tag
in
tag
s
)
)
_setupWrapper
:
->
...
...
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