set button colour to red for free trial

This commit is contained in:
Henry Oswald 2015-10-27 23:35:13 +00:00
parent 2d03410c42
commit 730088b6ab
3 changed files with 1 additions and 20 deletions

View file

@ -217,14 +217,6 @@ block content
script(type="text/javascript").
ga('send', 'event', 'pageview', 'payment_form', "#{plan_code}")
script(type="text/javascript").
window.ab = [
{step:1, bucket:"red", testName:"button_color"},
{step:1, bucket:"blue", testName:"button_color"}
]
mixin countries_options()
option(value='', disabled, selected) #{translate("country")}
option(value='-') --------------

View file

@ -37,7 +37,4 @@ block content
window.ab = [
{step:1, bucket:"student_control", testName:"editor_plan"},
{step:1, bucket:"collab_test", testName:"editor_plan"},
{step:2, bucket:"blue", testName:"button_color"},
{step:2, bucket:"red", testName:"button_color"}
]

View file

@ -3,15 +3,7 @@ define [
], (App) ->
App.controller "FreeTrialModalController", ($scope, abTestManager)->
buttonColorBuckets = [
{ bucketName:"red", btnClass:"primary"}
{ bucketName:"blue", btnClass:"info"}
]
buttonColorBucket = abTestManager.getABTestBucket "button_color", buttonColorBuckets
abTestManager.processTestWithStep("button_color", buttonColorBucket.bucketName, 0)
$scope.buttonClass = "btn-#{buttonColorBucket.btnClass}"
$scope.buttonClass = "btn-primary"
$scope.startFreeTrial = (source) ->