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
29b4075f
Commit
29b4075f
authored
Dec 03, 2014
by
gergely-ujvari
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1750 from hypothesis/more-consistent-names
Renamed a few methods to be more consistent
parents
4891c90b
ef706f43
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
controllers.coffee
h/static/scripts/controllers.coffee
+1
-1
guest.coffee
h/static/scripts/guest.coffee
+6
-6
heatmap.coffee
h/static/scripts/plugin/heatmap.coffee
+2
-2
No files found.
h/static/scripts/controllers.coffee
View file @
29b4075f
...
@@ -344,7 +344,7 @@ class ViewerController
...
@@ -344,7 +344,7 @@ class ViewerController
if
angular
.
isObject
annotation
if
angular
.
isObject
annotation
for
p
in
annotator
.
providers
for
p
in
annotator
.
providers
p
.
channel
.
notify
p
.
channel
.
notify
method
:
'scrollTo'
method
:
'scrollTo
Annotation
'
params
:
annotation
.
$
$tag
params
:
annotation
.
$
$tag
$scope
.
shouldShowThread
=
(
container
)
->
$scope
.
shouldShowThread
=
(
container
)
->
...
...
h/static/scripts/guest.coffee
View file @
29b4075f
...
@@ -151,7 +151,7 @@ class Annotator.Guest extends Annotator
...
@@ -151,7 +151,7 @@ class Annotator.Guest extends Annotator
hl
.
setFocused
false
hl
.
setFocused
false
)
)
.
bind
(
'scrollTo'
,
(
ctx
,
tag
)
=>
.
bind
(
'scrollTo
Annotation
'
,
(
ctx
,
tag
)
=>
for
hl
in
@
getHighlights
()
for
hl
in
@
getHighlights
()
if
hl
.
annotation
.
$
$tag
is
tag
if
hl
.
annotation
.
$
$tag
is
tag
hl
.
scrollTo
()
hl
.
scrollTo
()
...
@@ -228,17 +228,17 @@ class Annotator.Guest extends Annotator
...
@@ -228,17 +228,17 @@ class Annotator.Guest extends Annotator
this
.
plugins
.
Bridge
.
sync
([
annotation
])
this
.
plugins
.
Bridge
.
sync
([
annotation
])
annotation
annotation
show
Viewer
:
(
annotations
)
=>
show
Annotations
:
(
annotations
)
=>
@
panel
?
.
notify
@
panel
?
.
notify
method
:
"showViewer"
method
:
"showViewer"
params
:
(
a
.
$
$tag
for
a
in
annotations
)
params
:
(
a
.
$
$tag
for
a
in
annotations
)
toggle
Viewer
Selection
:
(
annotations
)
=>
toggle
Annotation
Selection
:
(
annotations
)
=>
@
panel
?
.
notify
@
panel
?
.
notify
method
:
"toggleViewerSelection"
method
:
"toggleViewerSelection"
params
:
(
a
.
$
$tag
for
a
in
annotations
)
params
:
(
a
.
$
$tag
for
a
in
annotations
)
update
Viewer
:
(
annotations
)
=>
update
Annotations
:
(
annotations
)
=>
@
panel
?
.
notify
@
panel
?
.
notify
method
:
"updateViewer"
method
:
"updateViewer"
params
:
(
a
.
$
$tag
for
a
in
annotations
)
params
:
(
a
.
$
$tag
for
a
in
annotations
)
...
@@ -290,10 +290,10 @@ class Annotator.Guest extends Annotator
...
@@ -290,10 +290,10 @@ class Annotator.Guest extends Annotator
if
toggle
if
toggle
# Tell sidebar to add these annotations to the sidebar
# Tell sidebar to add these annotations to the sidebar
this
.
toggle
Viewer
Selection
annotations
this
.
toggle
Annotation
Selection
annotations
else
else
# Tell sidebar to show the viewer for these annotations
# Tell sidebar to show the viewer for these annotations
this
.
show
Viewer
annotations
this
.
show
Annotations
annotations
# When hovering on a highlight in highlighting mode,
# When hovering on a highlight in highlighting mode,
# tell the sidebar to hilite the relevant annotations
# tell the sidebar to hilite the relevant annotations
...
...
h/static/scripts/plugin/heatmap.coffee
View file @
29b4075f
...
@@ -351,7 +351,7 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
...
@@ -351,7 +351,7 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
this
.
_buildTabs
(
@
tabs
,
@
buckets
)
this
.
_buildTabs
(
@
tabs
,
@
buckets
)
if
@
dynamicBucket
if
@
dynamicBucket
@
annotator
.
update
Viewer
this
.
_getDynamicBucket
()
@
annotator
.
update
Annotations
this
.
_getDynamicBucket
()
_buildTabs
:
->
_buildTabs
:
->
@
tabs
.
each
(
d
,
el
)
=>
@
tabs
.
each
(
d
,
el
)
=>
...
@@ -395,4 +395,4 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
...
@@ -395,4 +395,4 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
# Simulate clicking on the comments tab
# Simulate clicking on the comments tab
commentClick
:
=>
commentClick
:
=>
@
dynamicBucket
=
false
@
dynamicBucket
=
false
annotator
.
show
Viewer
@
buckets
[
@
_getCommentBucket
()]
annotator
.
show
Annotations
@
buckets
[
@
_getCommentBucket
()]
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