mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Fixed Alipay auto locale detection.
This commit is contained in:
parent
f9d9b0985b
commit
c6cd7b032d
6 changed files with 8 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
publishableKey = if application.isProduction() then 'pk_live_27jQZozjDGN1HSUTnSuM578g' else 'pk_test_zG5UwVu6Ww8YhtE9ZYh0JO6a'
|
||||
|
||||
|
||||
module.exports = handler = StripeCheckout.configure({
|
||||
key: publishableKey
|
||||
name: 'CodeCombat'
|
||||
|
@ -7,4 +7,5 @@ module.exports = handler = StripeCheckout.configure({
|
|||
image: '/images/pages/base/logo_square_250.png'
|
||||
token: (token) ->
|
||||
Backbone.Mediator.publish 'stripe:received-token', { token: token }
|
||||
})
|
||||
locale: 'auto'
|
||||
})
|
||||
|
|
|
@ -53,8 +53,7 @@ module.exports = class InvoicesView extends RootView
|
|||
amount: @amount
|
||||
description: @description
|
||||
bitcoin: true
|
||||
alipay: "auto"
|
||||
locale: "auto"
|
||||
alipay: 'auto'
|
||||
|
||||
onStripeReceivedToken: (e) ->
|
||||
data = {
|
||||
|
|
|
@ -194,8 +194,7 @@ class RecipientSubs
|
|||
options = {
|
||||
description: "#{@recipientEmails.length} " + $.i18n.t('subscribe.stripe_description', defaultValue: 'Monthly Subscriptions')
|
||||
amount: amount
|
||||
alipay: "auto"
|
||||
locale: "auto"
|
||||
alipay: 'auto'
|
||||
alipayReusable: true
|
||||
}
|
||||
@state = 'start subscribe'
|
||||
|
|
|
@ -112,8 +112,7 @@ module.exports = class SubscribeModal extends ModalView
|
|||
options = {
|
||||
description: $.i18n.t('subscribe.stripe_description')
|
||||
amount: @product.amount
|
||||
alipay: "auto"
|
||||
locale: "auto"
|
||||
alipay: 'auto'
|
||||
alipayReusable: true
|
||||
}
|
||||
|
||||
|
|
|
@ -604,7 +604,7 @@ module.exports = class CampaignView extends RootView
|
|||
onPollSync.call @ if @poll.loaded
|
||||
|
||||
activatePoll: ->
|
||||
pollTitle = "#{$.i18n.t 'play.poll'}: #{utils.i18n @poll.attributes, 'name'}"
|
||||
pollTitle = utils.i18n @poll.attributes, 'name'
|
||||
$pollButton = @$el.find('button.poll').removeClass('hidden').addClass('highlighted').attr(title: pollTitle).addClass('has-tooltip').tooltip title: pollTitle
|
||||
if me.get('lastLevel') is 'shadow-guard'
|
||||
@showPoll()
|
||||
|
|
|
@ -70,8 +70,7 @@ module.exports = class BuyGemsModal extends ModalView
|
|||
description: $.t(product.i18n)
|
||||
amount: product.amount
|
||||
bitcoin: true
|
||||
alipay: "auto"
|
||||
locale: "auto"
|
||||
alipay: 'auto'
|
||||
})
|
||||
|
||||
@productBeingPurchased = product
|
||||
|
|
Loading…
Reference in a new issue