Fix a tab and remove some console.logs

This commit is contained in:
yackob03 2013-10-08 11:36:45 -04:00
parent 6a038bb24e
commit 810b711fc4

View file

@ -135,7 +135,7 @@ function LandingCtrl($scope, $timeout, Restangular, UserService) {
$scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) { $scope.$watch( function () { return UserService.currentUser(); }, function (currentUser) {
if (!currentUser.anonymous) { if (!currentUser.anonymous) {
$scope.loadMyRepos(); $scope.loadMyRepos();
} }
$scope.user = currentUser; $scope.user = currentUser;
@ -161,7 +161,6 @@ function LandingCtrl($scope, $timeout, Restangular, UserService) {
$scope.awaitingConfirmation = true; $scope.awaitingConfirmation = true;
$scope.registering = false; $scope.registering = false;
}, function(result) { }, function(result) {
console.log("Displaying error message.");
$scope.registering = false; $scope.registering = false;
$scope.registerError = result.data.message; $scope.registerError = result.data.message;
$timeout(function() { $timeout(function() {
@ -477,8 +476,6 @@ function UserAdminCtrl($scope, Restangular, PlanService, $routeParams) {
plan: planId, plan: planId,
}; };
console.log(subscriptionDetails);
var createSubscriptionRequest = Restangular.one('user/plan'); var createSubscriptionRequest = Restangular.one('user/plan');
createSubscriptionRequest.customPUT(subscriptionDetails).then(subscribedToPlan, function() { createSubscriptionRequest.customPUT(subscriptionDetails).then(subscribedToPlan, function() {
// Failure // Failure