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
9aac31c2
Commit
9aac31c2
authored
Dec 03, 2014
by
Randall Leeds
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1752 from hypothesis/consistent-rpc-names
Rename rpc methods to be more consistent
parents
29b4075f
eea3b762
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
guest.coffee
h/static/scripts/guest.coffee
+3
-3
services.coffee
h/static/scripts/services.coffee
+3
-3
No files found.
h/static/scripts/guest.coffee
View file @
9aac31c2
...
@@ -230,17 +230,17 @@ class Annotator.Guest extends Annotator
...
@@ -230,17 +230,17 @@ class Annotator.Guest extends Annotator
showAnnotations
:
(
annotations
)
=>
showAnnotations
:
(
annotations
)
=>
@
panel
?
.
notify
@
panel
?
.
notify
method
:
"show
Viewer
"
method
:
"show
Annotations
"
params
:
(
a
.
$
$tag
for
a
in
annotations
)
params
:
(
a
.
$
$tag
for
a
in
annotations
)
toggleAnnotationSelection
:
(
annotations
)
=>
toggleAnnotationSelection
:
(
annotations
)
=>
@
panel
?
.
notify
@
panel
?
.
notify
method
:
"toggle
Viewer
Selection"
method
:
"toggle
Annotation
Selection"
params
:
(
a
.
$
$tag
for
a
in
annotations
)
params
:
(
a
.
$
$tag
for
a
in
annotations
)
updateAnnotations
:
(
annotations
)
=>
updateAnnotations
:
(
annotations
)
=>
@
panel
?
.
notify
@
panel
?
.
notify
method
:
"update
Viewer
"
method
:
"update
Annotations
"
params
:
(
a
.
$
$tag
for
a
in
annotations
)
params
:
(
a
.
$
$tag
for
a
in
annotations
)
showEditor
:
(
annotation
)
=>
showEditor
:
(
annotation
)
=>
...
...
h/static/scripts/services.coffee
View file @
9aac31c2
...
@@ -154,12 +154,12 @@ class Hypothesis extends Annotator
...
@@ -154,12 +154,12 @@ class Hypothesis extends Annotator
this
.
showEditor
this
.
_getLocalAnnotation
(
tag
)
this
.
showEditor
this
.
_getLocalAnnotation
(
tag
)
)
)
.
bind
(
'show
Viewer
'
,
(
ctx
,
tags
=
[])
=>
.
bind
(
'show
Annotations
'
,
(
ctx
,
tags
=
[])
=>
@
element
.
scope
().
$apply
=>
@
element
.
scope
().
$apply
=>
this
.
showViewer
this
.
_getLocalAnnotations
(
tags
)
this
.
showViewer
this
.
_getLocalAnnotations
(
tags
)
)
)
.
bind
(
'update
Viewer
'
,
(
ctx
,
tags
=
[])
=>
.
bind
(
'update
Annotations
'
,
(
ctx
,
tags
=
[])
=>
@
element
.
scope
().
$apply
=>
@
element
.
scope
().
$apply
=>
this
.
updateViewer
this
.
_getLocalAnnotations
(
tags
)
this
.
updateViewer
this
.
_getLocalAnnotations
(
tags
)
)
)
...
@@ -169,7 +169,7 @@ class Hypothesis extends Annotator
...
@@ -169,7 +169,7 @@ class Hypothesis extends Annotator
this
.
focusAnnotations
tags
this
.
focusAnnotations
tags
)
)
.
bind
(
'toggle
Viewer
Selection'
,
(
ctx
,
tags
=
[])
=>
.
bind
(
'toggle
Annotation
Selection'
,
(
ctx
,
tags
=
[])
=>
@
element
.
scope
().
$apply
=>
@
element
.
scope
().
$apply
=>
this
.
toggleViewerSelection
this
.
_getLocalAnnotations
(
tags
)
this
.
toggleViewerSelection
this
.
_getLocalAnnotations
(
tags
)
)
)
...
...
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