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
02ca6c59
Commit
02ca6c59
authored
Nov 26, 2014
by
Randall Leeds
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1720 from hypothesis/1634-finding-annotations
[WIP] Restore feature to scroll for annotations
parents
aa60b14c
fc144ee0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
controllers.coffee
h/static/scripts/controllers.coffee
+7
-0
viewer.html
h/templates/client/viewer.html
+1
-0
No files found.
h/static/scripts/controllers.coffee
View file @
02ca6c59
...
...
@@ -345,6 +345,13 @@ class ViewerController
method
:
'setActiveHighlights'
params
:
highlights
$scope
.
scrollTo
=
(
annotation
)
->
if
angular
.
isObject
annotation
for
p
in
annotator
.
providers
p
.
channel
.
notify
method
:
'scrollTo'
params
:
annotation
.
$
$tag
$scope
.
shouldShowThread
=
(
container
)
->
if
$scope
.
selectedAnnotations
?
and
not
container
.
parent
.
parent
$scope
.
selectedAnnotations
[
container
.
message
?
.
id
]
...
...
h/templates/client/viewer.html
View file @
02ca6c59
...
...
@@ -39,6 +39,7 @@
thread-collapsed=
"!search.query"
ng-include=
"'thread.html'"
ng-mouseenter=
"activate(child.message)"
ng-click=
"scrollTo(child.message)"
"
ng-mouseleave=
"activate()"
ng-repeat=
"child in vm.container.children | orderBy : sort.predicate"
ng-show=
"vm.container && shouldShowThread(child) &&
...
...
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