Update the plans page to make it a single row (and work in general)

This commit is contained in:
Joseph Schorr 2013-12-20 21:25:06 -05:00
parent 3f062ee602
commit 8bfc0ac48d
3 changed files with 9 additions and 44 deletions

View file

@ -33,19 +33,10 @@ function PlansCtrl($scope, $location, UserService, PlanService) {
};
$scope.buyNow = function(plan) {
PlanService.notePlan(plan);
if ($scope.user && !$scope.user.anonymous) {
document.location = '/user?plan=' + plan;
PlanService.handleNotedPlan();
} else {
PlanService.notePlan(plan);
$('#signinModal').modal({});
}
};
$scope.createOrg = function(plan) {
if ($scope.user && !$scope.user.anonymous) {
document.location = '/organizations/new/?plan=' + plan;
} else {
PlanService.notePlan(plan);
$('#signinModal').modal({});
}
};