mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
14 lines
No EOL
495 B
CoffeeScript
14 lines
No EOL
495 B
CoffeeScript
define [
|
|
"base"
|
|
], (App)->
|
|
|
|
App.controller "NewSubscriptionController", ($scope, MultiCurrencyPricing, abTestManager)->
|
|
|
|
$scope.currencyCode = MultiCurrencyPricing.currencyCode
|
|
$scope.plans = MultiCurrencyPricing.plans
|
|
|
|
$scope.changeCurrency = (newCurrency)->
|
|
window.location = "/user/subscription/new?planCode=#{window.plan_code}¤cy=#{newCurrency}"
|
|
|
|
$scope.switchToStudent = ()->
|
|
window.location = "/user/subscription/new?planCode=student¤cy=#{$scope.currencyCode}" |