mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fix the popup alert when starting a new trial
This commit is contained in:
parent
b1c0dfb0e4
commit
76be671e26
1 changed files with 8 additions and 8 deletions
|
@ -6,12 +6,12 @@ define [
|
||||||
$scope.buttonClass = "btn-primary"
|
$scope.buttonClass = "btn-primary"
|
||||||
|
|
||||||
$scope.startFreeTrial = (source, couponCode) ->
|
$scope.startFreeTrial = (source, couponCode) ->
|
||||||
|
w = window.open()
|
||||||
sixpack.convert "track-changes-discount", ->
|
sixpack.convert "track-changes-discount", ->
|
||||||
|
sixpack.participate 'free-trial-plan', ['student', 'collaborator'], (planName, rawResponse)->
|
||||||
sixpack.participate 'free-trial-plan', ['student', 'collaborator'], (planName, rawResponse)->
|
ga?('send', 'event', 'subscription-funnel', 'upgraded-free-trial', source)
|
||||||
ga?('send', 'event', 'subscription-funnel', 'upgraded-free-trial', source)
|
url = "/user/subscription/new?planCode=#{planName}_free_trial_7_days&ssp=#{planName == 'collaborator'}"
|
||||||
url = "/user/subscription/new?planCode=#{planName}_free_trial_7_days&ssp=#{planName == 'collaborator'}"
|
if couponCode?
|
||||||
if couponCode?
|
url = "#{url}&cc=#{couponCode}"
|
||||||
url = "#{url}&cc=#{couponCode}"
|
$scope.startedFreeTrial = true
|
||||||
window.open(url)
|
w.location = url
|
||||||
$scope.startedFreeTrial = true
|
|
||||||
|
|
Loading…
Reference in a new issue