Fixed Alipay auto locale detection.

This commit is contained in:
Nick Winter 2015-03-18 17:17:30 -07:00
parent f9d9b0985b
commit c6cd7b032d
6 changed files with 8 additions and 11 deletions

View file

@ -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'
})

View file

@ -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 = {

View file

@ -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'

View file

@ -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
}

View file

@ -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()

View file

@ -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