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
a4843b08
Commit
a4843b08
authored
Dec 19, 2012
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restore highlight interactions with viewer and map
parent
ad03c4c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
controllers.coffee
h/js/controllers.coffee
+14
-4
No files found.
h/js/controllers.coffee
View file @
a4843b08
...
...
@@ -305,6 +305,17 @@ class Viewer
annotation
=
$target
.
controller
(
'ngModel'
)
?
.
$modelValue
if
annotation
then
$location
.
search
(
'id'
,
annotation
.
id
).
replace
()
$scope
.
focus
=
(
annotation
=
$scope
.
annotations
)
->
if
$routeParams
.
id
?
highlights
=
[
$routeParams
.
id
]
else
if
angular
.
isArray
annotation
highlights
=
(
a
.
id
for
a
in
annotation
)
else
if
angular
.
isObject
annotation
highlights
=
[
annotation
.
id
]
else
highlights
=
[]
annotator
.
provider
.
setActiveHighlights
highlights
$scope
.
$on
'$routeChangeSuccess'
,
=>
update
=
=>
$scope
.
$emit
'$routeUpdate'
annotator
.
plugins
.
Heatmap
.
subscribe
'updated'
,
update
...
...
@@ -315,10 +326,6 @@ class Viewer
$scope
.
$on
'$routeUpdate'
,
=>
this
.
refresh
$scope
,
$routeParams
,
annotator
,
threading
$scope
.
$watch
'detail && thread.message.annotation.id'
,
(
newValue
)
->
annotations
=
if
newValue
?
then
[
newValue
]
else
$scope
.
annotations
annotator
.
provider
.
setActiveHighlights
annotations
.
map
(
a
)
=>
a
.
id
refresh
:
(
$scope
,
$routeParams
,
annotator
,
threading
)
=>
if
$routeParams
.
bucket
?
buckets
=
annotator
.
plugins
.
Heatmap
.
buckets
...
...
@@ -342,8 +349,11 @@ class Viewer
if
$routeParams
.
id
?
$scope
.
detail
=
true
$scope
.
thread
=
threading
.
getContainer
$routeParams
.
id
$scope
.
focus
$scope
.
thread
.
message
.
annotation
else
$scope
.
detail
=
false
console
.
log
'focusing'
,
$scope
.
annotations
$scope
.
focus
$scope
.
annotations
angular
.
module
(
'h.controllers'
,
[])
...
...
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