mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-15 04:24:52 +00:00
fix free trial button on timeout view
This commit is contained in:
parent
9eb4dd1b3b
commit
2f48568f76
2 changed files with 6 additions and 1 deletions
|
@ -100,7 +100,7 @@ div.full-size.pdf(ng-controller="PdfController")
|
|||
p
|
||||
a.btn.btn-info(
|
||||
href
|
||||
ng-click="hello('compile-timeout')"
|
||||
ng-click="startFreeTrial('compile-timeout')"
|
||||
) #{translate("start_free_trial")}
|
||||
|
||||
.pdf-errors(ng-show="pdf.projectTooLarge")
|
||||
|
|
|
@ -196,6 +196,11 @@ define [
|
|||
else
|
||||
$scope.switchToSideBySideLayout()
|
||||
|
||||
$scope.startFreeTrial = (source) ->
|
||||
ga?('send', 'event', 'subscription-funnel', 'compile-timeout', source)
|
||||
window.open("/user/subscription/new?planCode=student_free_trial_7_days")
|
||||
$scope.startedFreeTrial = true
|
||||
|
||||
App.factory "synctex", ["ide", "$http", "$q", (ide, $http, $q) ->
|
||||
synctex =
|
||||
syncToPdf: (cursorPosition) ->
|
||||
|
|
Loading…
Reference in a new issue