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
c2fda671
Commit
c2fda671
authored
Sep 27, 2013
by
csillag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When opening an annotation card, scroll to highlight. (As in #787)
parent
23d6d82c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
controllers.coffee
h/js/controllers.coffee
+5
-0
directives.coffee
h/js/directives.coffee
+1
-0
guest.coffee
h/js/guest.coffee
+7
-0
No files found.
h/js/controllers.coffee
View file @
c2fda671
...
...
@@ -724,6 +724,11 @@ class Viewer
method
:
'setActiveHighlights'
params
:
highlights
$scope
.
openDetails
=
(
annotation
)
->
for
p
in
providers
p
.
channel
.
notify
method
:
'scrollTo'
params
:
annotation
.
$
$tag
class
Search
this
.
$inject
=
[
'$filter'
,
'$location'
,
'$routeParams'
,
'$scope'
,
'annotator'
]
...
...
h/js/directives.coffee
View file @
c2fda671
...
...
@@ -217,6 +217,7 @@ thread = ['$timeout', ($timeout) ->
$timeout
->
return
unless
Object
.
keys
(
childrenEditing
).
length
is
0
scope
.
collapsed
=
!
scope
.
collapsed
scope
.
openDetails
scope
.
annotation
unless
scope
.
collapsed
,
10
scope
.
$on
'toggleEditing'
,
(
event
)
->
...
...
h/js/guest.coffee
View file @
c2fda671
...
...
@@ -68,6 +68,13 @@ class Annotator.Guest extends Annotator
$
(
this
).
removeClass
(
'annotator-hl-active'
)
)
.
bind
(
'scrollTo'
,
(
ctx
,
tag
)
=>
@
wrapper
.
find
(
'.annotator-hl'
)
.
each
->
if
$
(
this
).
data
(
'annotation'
).
$
$tag
is
tag
$
(
this
).
scrollintoview
()
)
.
bind
(
'adderClick'
,
=>
@
onAdderClick
@
event
)
...
...
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