overleaf/services/web/public/coffee/main/new-subscription.coffee

11 lines
367 B
CoffeeScript
Raw Normal View History

define [
"base"
], (App)->
2014-10-15 11:21:45 -04:00
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}&currency=#{newCurrency}"