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
c791dc80
Commit
c791dc80
authored
Apr 01, 2014
by
csillag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
On heatmap click, change the view to viewer. Fixes #1140.
parent
ac4d8e98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
heatmap.coffee
h/js/plugin/heatmap.coffee
+6
-3
No files found.
h/js/plugin/heatmap.coffee
View file @
c791dc80
...
...
@@ -68,7 +68,7 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
@
element
.
on
'click'
,
(
event
)
=>
event
.
stopPropagation
()
this
.
_fillDynamicBucket
()
this
.
_fillDynamicBucket
true
@
dynamicBucket
=
true
@
element
.
on
'mouseup'
,
(
event
)
=>
...
...
@@ -496,7 +496,7 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
@
tabs
=
tabs
_fillDynamicBucket
:
=>
_fillDynamicBucket
:
(
changeLocation
=
false
)
=>
top
=
window
.
pageYOffset
bottom
=
top
+
$
(
window
).
innerHeight
()
anchors
=
@
annotator
.
getHighlights
()
...
...
@@ -507,7 +507,10 @@ class Annotator.Plugin.Heatmap extends Annotator.Plugin
acc
,
[]
# $.merge visible, @annotator.comments
@
annotator
.
updateViewer
"Screen"
,
visible
if
changeLocation
@
annotator
.
showViewer
"Screen"
,
visible
else
@
annotator
.
updateViewer
"Screen"
,
visible
_getCommentBucket
:
=>
@
index
.
length
-
2
...
...
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