diff --git a/static/js/controllers.js b/static/js/controllers.js index 3772662e9..b96985308 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -104,14 +104,15 @@ function LandingCtrl($scope, $timeout, Restangular, UserService) { $scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) { $scope.user = currentUser; - if (currentUser && !currentUser.anonymous) { - document.location = '/#/repository'; - } }, true); $scope.awaitingConfirmation = false; $scope.registering = false; + $scope.browseRepos = function() { + document.location = '/#/repository'; + }; + $scope.register = function() { $('.form-signup').popover('hide'); $scope.registering = true; diff --git a/static/partials/landing.html b/static/partials/landing.html index af41f8917..e9cf860b3 100644 --- a/static/partials/landing.html +++ b/static/partials/landing.html @@ -3,8 +3,8 @@