mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-11 18:50:56 +00:00
only run participate test for sign up if user has no projects
This commit is contained in:
parent
23fd12c67d
commit
5598624ee1
1 changed files with 8 additions and 6 deletions
|
@ -11,12 +11,14 @@ define [
|
||||||
$scope.predicate = "lastUpdated"
|
$scope.predicate = "lastUpdated"
|
||||||
$scope.reverse = true
|
$scope.reverse = true
|
||||||
|
|
||||||
|
if $scope.projects.length > 0
|
||||||
sixpack.participate 'first_sign_up', ['default', 'minimial'], (chosenVariation, rawResponse)->
|
$scope.first_sign_up = "default"
|
||||||
$scope.first_sign_up = chosenVariation
|
else
|
||||||
$timeout () ->
|
sixpack.participate 'first_sign_up', ['default', 'minimial'], (chosenVariation, rawResponse)->
|
||||||
recalculateProjectListHeight()
|
$scope.first_sign_up = chosenVariation
|
||||||
, 10
|
$timeout () ->
|
||||||
|
recalculateProjectListHeight()
|
||||||
|
, 10
|
||||||
|
|
||||||
recalculateProjectListHeight = () ->
|
recalculateProjectListHeight = () ->
|
||||||
topOffset = $(".project-list-card")?.offset()?.top
|
topOffset = $(".project-list-card")?.offset()?.top
|
||||||
|
|
Loading…
Reference in a new issue