Commit c76449a3 authored by Randall Leeds's avatar Randall Leeds

fix leaving dynamic bucket

parent 78a7edf3
......@@ -43,8 +43,7 @@ class App
buckets
heatmap.element.bind 'click', ->
$scope.$apply ->
$location.path('/viewer').search(null).replace()
$scope.$apply -> $location.path('/viewer').search(null).replace()
annotator.show()
{highlights, offset} = d3.select(heatmap.element[0]).datum()
......@@ -100,7 +99,6 @@ class App
, threshold - height
provider.scrollTop next - pad
delete search.bucket
$location.search(search).replace()
# If it's the lower tab, scroll to next bucket below
else if heatmap.isLower bucket
......@@ -113,10 +111,10 @@ class App
# If it's neither of the above, load the bucket into the viewer
else
delete search.detail
delete search.id
annotator.show()
$location.path('/viewer').search().replace()
$scope.$apply -> $location.path('/viewer').search(search).replace()
angular.extend $scope,
auth:
......
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