mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-18 16:42:39 -05:00
11 lines
392 B
CoffeeScript
11 lines
392 B
CoffeeScript
|
define [
|
||
|
"base"
|
||
|
], (App) ->
|
||
|
App.controller "TrackChangesUpgradeModalController", ($scope, $modalInstance) ->
|
||
|
$scope.cancel = () ->
|
||
|
$modalInstance.dismiss()
|
||
|
|
||
|
$scope.startFreeTrial = (source) ->
|
||
|
ga?('send', 'event', 'subscription-funnel', 'upgraded-free-trial', source)
|
||
|
window.open("/user/subscription/new?planCode=student_free_trial_7_days")
|
||
|
$scope.startedFreeTrial = true
|