Change button on the tour page to "Start free trial" and have it start the plan signup process

This commit is contained in:
Joseph Schorr 2014-05-19 12:53:30 -04:00
parent 78f6523068
commit abfb86ccce
3 changed files with 11 additions and 12 deletions

View file

@ -24,12 +24,7 @@ function SecurityCtrl($scope) {
function ContactCtrl($scope) {
}
function PlansCtrl($scope, $location, UserService, PlanService) {
// Load the list of plans.
PlanService.getPlans(function(plans) {
$scope.plans = plans;
}, /* include the personal plan */ true);
function PlansCtrl($scope, $location, UserService, PlanService, $routeParams) {
// Monitor any user changes and place the current user into the scope.
UserService.updateUserIn($scope);
@ -46,6 +41,15 @@ function PlansCtrl($scope, $location, UserService, PlanService) {
$('#signinModal').modal({});
}
};
// Load the list of plans.
PlanService.getPlans(function(plans) {
$scope.plans = plans;
if ($scope && $routeParams['trial-plan']) {
$scope.buyNow($routeParams['trial-plan']);
}
}, /* include the personal plan */ true);
}
function TutorialCtrl($scope, AngularTour, AngularTourSignals, UserService, Config) {