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