Commit 130ee778 authored by Randall Leeds's avatar Randall Leeds

remove obsolete Hypothesis.detail property

Use CSS to hide the reply count in the header for the detail view
and to do the slash delimiter.
parent a1501944
......@@ -557,6 +557,15 @@ blockquote {
}
}
.reply-count {
.detail .magicontrols & {
display: none;
}
.summary &:after {
content: ' /'
}
}
//SUMMARY////////////////////////////////
......
......@@ -246,7 +246,7 @@ class Annotation
$scope.unsaved = true
$scope.directChildren = ->
if $scope.$modelValue? and (not annotator.detail) and threading.getContainer($scope.$modelValue.id).children?
if $scope.$modelValue? and threading.getContainer($scope.$modelValue.id).children?
return threading.getContainer($scope.$modelValue.id).children.length
0
......@@ -337,9 +337,6 @@ class Viewer
$scope.$on '$routeUpdate', refresh
$scope.$watch 'detail', (newValue, oldValue) =>
annotator.detail = newValue
refresh()
refresh: ($scope, $routeParams, threading, heatmap) =>
......
......@@ -11,7 +11,6 @@ class Hypothesis extends Annotator
userString: (user) -> user.replace(/^acct:(.+)@(.+)$/, '$1 on $2')
# Internal state
detail: false # * Whether the viewer shows a summary or detail listing
visible: false # * Whether the sidebar is visible
unsaved_drafts: [] # * Unsaved drafts currenty open
......
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