Commit 937b517b authored by csillag's avatar csillag

Set scope in app controller, instead of view. Fixes #1108

parent bbb0be66
......@@ -148,6 +148,8 @@ class App
$scope.$broadcast '$reset'
$rootScope.view = 'Screen'
# Clean up the searchbar
$scope.leaveSearch = =>
# Got back from search page
......@@ -680,7 +682,6 @@ class Viewer
annotator
) ->
{providers, threading} = annotator
$rootScope.view = 'Screen'
$scope.sort = 'Newest'
$scope.views = [
{view:'Screen'}
......
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