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
ba5f3375
Commit
ba5f3375
authored
Nov 03, 2014
by
Aron Carroll
Committed by
Nick Stenning
Nov 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show highlights when showHighlights option is provided
parent
bb9007aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
host.coffee
h/static/scripts/host.coffee
+5
-0
services.coffee
h/static/scripts/services.coffee
+9
-7
No files found.
h/static/scripts/host.coffee
View file @
ba5f3375
...
@@ -37,6 +37,11 @@ class Annotator.Host extends Annotator.Guest
...
@@ -37,6 +37,11 @@ class Annotator.Host extends Annotator.Guest
if
options
.
firstRun
if
options
.
firstRun
this
.
on
'panelReady'
,
=>
this
.
actuallyShowFrame
(
transition
:
false
)
this
.
on
'panelReady'
,
=>
this
.
actuallyShowFrame
(
transition
:
false
)
# Host frame dictates the toolbar options.
this
.
on
'panelReady'
,
=>
this
.
setTool
(
'comment'
)
this
.
setVisibleHighlights
(
!!
options
.
showHighlights
)
if
@
plugins
.
Heatmap
?
if
@
plugins
.
Heatmap
?
this
.
_setupDragEvents
()
this
.
_setupDragEvents
()
@
plugins
.
Heatmap
.
element
.
on
'click'
,
(
event
)
=>
@
plugins
.
Heatmap
.
element
.
on
'click'
,
(
event
)
=>
...
...
h/static/scripts/services.coffee
View file @
ba5f3375
...
@@ -107,13 +107,15 @@ class Hypothesis extends Annotator
...
@@ -107,13 +107,15 @@ class Hypothesis extends Annotator
entities
.
push
href
entities
.
push
href
this
.
plugins
.
Store
?
.
loadAnnotations
()
this
.
plugins
.
Store
?
.
loadAnnotations
()
channel
.
notify
# Allow the host to define it's own state
method
:
'setTool'
unless
source
is
$window
.
parent
params
:
this
.
tool
channel
.
notify
method
:
'setTool'
channel
.
notify
params
:
this
.
tool
method
:
'setVisibleHighlights'
params
:
this
.
visibleHighlights
channel
.
notify
method
:
'setVisibleHighlights'
params
:
this
.
visibleHighlights
@
providers
.
push
@
providers
.
push
channel
:
channel
channel
:
channel
...
...
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