mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
renamed change currency function and sorted out recommended currency
This commit is contained in:
parent
2bf34bba4d
commit
2bbdea3433
2 changed files with 4 additions and 5 deletions
|
@ -1,8 +1,7 @@
|
||||||
extends ../layout
|
extends ../layout
|
||||||
block scripts
|
block scripts
|
||||||
script(type='text/javascript').
|
script(type='text/javascript').
|
||||||
window.recurlyPublicToken = '#{settings.apis.recurly.publicKey}'
|
window.recomendedCurrency = '#{recomendedCurrency}'
|
||||||
|
|
||||||
|
|
||||||
mixin printPlan(plan)
|
mixin printPlan(plan)
|
||||||
-if (!plan.hideFromUsers)
|
-if (!plan.hideFromUsers)
|
||||||
|
@ -83,7 +82,7 @@ block content
|
||||||
li(ng-repeat="(currency, value) in plans", dropdown-toggle)
|
li(ng-repeat="(currency, value) in plans", dropdown-toggle)
|
||||||
a(
|
a(
|
||||||
href,
|
href,
|
||||||
ng-click="changeCurreny(currency)"
|
ng-click="changeCurrency(currency)"
|
||||||
) {{currency}} ({{value['symbol']}})
|
) {{currency}} ({{value['symbol']}})
|
||||||
p: table.table
|
p: table.table
|
||||||
tr
|
tr
|
||||||
|
|
|
@ -9,7 +9,7 @@ define [
|
||||||
$scope.plans = MultiCurrencyPricing.plans
|
$scope.plans = MultiCurrencyPricing.plans
|
||||||
$scope.currencyCode = MultiCurrencyPricing.currencyCode
|
$scope.currencyCode = MultiCurrencyPricing.currencyCode
|
||||||
|
|
||||||
$scope.changeCurreny = (newCurrency)->
|
$scope.changeCurrency = (newCurrency)->
|
||||||
MultiCurrencyPricing.currencyCode = newCurrency
|
MultiCurrencyPricing.currencyCode = newCurrency
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue