Commit 67ab7b20 authored by RawKStar77's avatar RawKStar77

Greatly simplified code using angular animation and ng-show

parent 823e057a
......@@ -1220,8 +1220,9 @@ h3.stream {
right: 0;
z-index: 4;
&.hidden {
display: none;
&.ng-hide {
top: 0;
display:block!important;
}
}
......
......@@ -16,10 +16,6 @@ class App
annotator, authentication, baseURI, streamfilter, viewFilter
) ->
{plugins, host, providers} = annotator
#This must be set so the view sort controller can autohide.
$scope.show_search = false
$scope.show_view_sort = false
$scope.$watch 'auth.personas', (newValue, oldValue) =>
unless newValue?.length
......@@ -708,13 +704,6 @@ class Viewer
{sort:'Location'}]
$scope.predicate = 'updated'
$scope.reverse = true
$scope.hidden = 'hidden'
$scope.$watch 'show_view_sort', (newValue, oldValue) ->
if newValue == true
$scope.hidden = ''
if newValue == false
$scope.hidden = 'hidden'
$scope.focus = (annotation) ->
if angular.isArray annotation
......
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