Commit 2f941b2f authored by Randall Leeds's avatar Randall Leeds

click on summary margin -> detail (fix #225)

parent e7e43a67
......@@ -322,13 +322,10 @@ class Viewer
$scope.detail = false
$scope.thread = null
$scope.showDetail = ($event) ->
$target = angular.element $event.target
annotation = $target.controller('ngModel')?.$modelValue
if annotation
search = $location.search() or {}
search.id = annotation.id
$location.search(search).replace()
$scope.showDetail = (annotation) ->
search = $location.search() or {}
search.id = annotation.id
$location.search(search).replace()
$scope.focus = (annotation=$scope.annotations) ->
if $routeParams.id?
......
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