Commit a6ab11f2 authored by Randall Leeds's avatar Randall Leeds

When updating the viewer, don't change the route

Fixes #790
parent 39fd5639
......@@ -300,14 +300,21 @@ class Hypothesis extends Annotator
($location, $rootScope) =>
@buildReplyList annotations
$rootScope.annotations = annotations
$location.path('/viewer').replace()
$rootScope.$digest()
]
this
showViewer: (annotations=[]) =>
this.show()
this.updateViewer annotations
@element.injector().invoke [
'$location', '$rootScope',
($location, $rootScope) =>
@buildReplyList annotations
$rootScope.annotations = annotations
$location.path('/viewer').replace()
$rootScope.$digest()
]
this
clickAdder: =>
for p in @providers
......
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