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
b11a90ae
Commit
b11a90ae
authored
Apr 16, 2013
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some problems introduced by my twiddling
parent
81b4c3fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
controllers.coffee
h/js/controllers.coffee
+2
-3
services.coffee
h/js/services.coffee
+2
-2
No files found.
h/js/controllers.coffee
View file @
b11a90ae
...
...
@@ -283,7 +283,7 @@ class Annotation
$scope
.
thread
=
threading
.
getContainer
id
# Check if this is a brand new annotation
annotation
=
$scope
.
thread
.
message
?
.
annotation
annotation
=
$scope
.
thread
.
message
if
annotation
?
and
drafts
.
contains
annotation
$scope
.
editing
=
true
...
...
@@ -300,7 +300,6 @@ class Annotation
$scope
.
shared
=
not
$scope
.
shared
$element
.
find
(
'.share-dialog'
).
slideToggle
()
console
.
log
$scope
.
shared
class
Editor
this
.
$inject
=
[
'$location'
,
'$routeParams'
,
'$scope'
,
'annotator'
]
...
...
@@ -380,7 +379,7 @@ class Viewer
if
$routeParams
.
id
?
and
annotator
.
threading
.
idTable
[
$routeParams
.
id
]
?
$scope
.
detail
=
true
$scope
.
thread
=
annotator
.
threading
.
getContainer
$routeParams
.
id
$scope
.
focus
$scope
.
thread
.
message
?
.
annotation
$scope
.
focus
$scope
.
thread
.
message
?
else
$scope
.
detail
=
false
$scope
.
thread
=
null
...
...
h/js/services.coffee
View file @
b11a90ae
...
...
@@ -247,6 +247,7 @@ class Hypothesis extends Annotator
annotation
showViewer
:
(
annotations
=
[])
=>
this
.
show
()
@
element
.
injector
().
invoke
[
'$location'
,
'$rootScope'
,
(
$location
,
$rootScope
)
->
...
...
@@ -254,10 +255,10 @@ class Hypothesis extends Annotator
$location
.
path
(
'/viewer'
).
replace
()
$rootScope
.
$digest
()
]
this
.
show
()
this
showEditor
:
(
annotation
)
=>
this
.
show
()
@
element
.
injector
().
invoke
[
'$location'
,
'$rootScope'
,
'$route'
(
$location
,
$rootScope
,
$route
)
=>
...
...
@@ -279,7 +280,6 @@ class Hypothesis extends Annotator
if
$route
.
current
.
controller
is
'EditorController'
$route
.
current
.
locals
.
$scope
.
$apply
(
s
)
->
s
.
annotation
=
annotation
]
this
.
show
()
this
show
:
=>
...
...
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