Commit 434f6aad authored by csillag's avatar csillag

Fix regression introduced in previous cumit, and remove more useless stuff

parent 602bc0f2
...@@ -316,8 +316,8 @@ class Hypothesis extends Annotator ...@@ -316,8 +316,8 @@ class Hypothesis extends Annotator
updateViewer: (annotations=[]) => updateViewer: (annotations=[]) =>
annotations = annotations.filter (a) -> a? annotations = annotations.filter (a) -> a?
@element.injector().invoke [ @element.injector().invoke [
'$location', '$rootScope', '$rootScope',
($location, $rootScope) => ($rootScope) =>
@buildReplyList annotations @buildReplyList annotations
$rootScope.annotations = annotations $rootScope.annotations = annotations
] ]
...@@ -325,6 +325,11 @@ class Hypothesis extends Annotator ...@@ -325,6 +325,11 @@ class Hypothesis extends Annotator
showViewer: (annotations=[]) => showViewer: (annotations=[]) =>
this.show() this.show()
@element.injector().invoke [
'$location',
($location) =>
$location.path('/viewer').replace()
]
this.updateViewer annotations this.updateViewer annotations
addEmphasis: (annotations=[]) => addEmphasis: (annotations=[]) =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment