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
Show 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,6 +107,8 @@ class Hypothesis extends Annotator
...
@@ -107,6 +107,8 @@ class Hypothesis extends Annotator
entities
.
push
href
entities
.
push
href
this
.
plugins
.
Store
?
.
loadAnnotations
()
this
.
plugins
.
Store
?
.
loadAnnotations
()
# Allow the host to define it's own state
unless
source
is
$window
.
parent
channel
.
notify
channel
.
notify
method
:
'setTool'
method
:
'setTool'
params
:
this
.
tool
params
:
this
.
tool
...
...
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