diff --git a/app/core/services/stripe.coffee b/app/core/services/stripe.coffee index 0a457b362..95d11da88 100644 --- a/app/core/services/stripe.coffee +++ b/app/core/services/stripe.coffee @@ -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 } -}) \ No newline at end of file + locale: 'auto' +}) diff --git a/app/views/account/InvoicesView.coffee b/app/views/account/InvoicesView.coffee index b91e778bf..970ab9045 100644 --- a/app/views/account/InvoicesView.coffee +++ b/app/views/account/InvoicesView.coffee @@ -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 = { diff --git a/app/views/account/SubscriptionView.coffee b/app/views/account/SubscriptionView.coffee index 29faaee05..307bd04b3 100644 --- a/app/views/account/SubscriptionView.coffee +++ b/app/views/account/SubscriptionView.coffee @@ -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' diff --git a/app/views/core/SubscribeModal.coffee b/app/views/core/SubscribeModal.coffee index 0dbb938af..3802211f0 100644 --- a/app/views/core/SubscribeModal.coffee +++ b/app/views/core/SubscribeModal.coffee @@ -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 } diff --git a/app/views/play/CampaignView.coffee b/app/views/play/CampaignView.coffee index f03e2477c..f0c653d5f 100644 --- a/app/views/play/CampaignView.coffee +++ b/app/views/play/CampaignView.coffee @@ -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() diff --git a/app/views/play/modal/BuyGemsModal.coffee b/app/views/play/modal/BuyGemsModal.coffee index 27bc01e7c..9c4b1d572 100644 --- a/app/views/play/modal/BuyGemsModal.coffee +++ b/app/views/play/modal/BuyGemsModal.coffee @@ -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