add close buttonn to payment methods

This commit is contained in:
tahmidshahriar 2015-07-01 10:20:14 -07:00
parent 90e02cba48
commit 60e27d386f

View file

@ -44,7 +44,6 @@ module.exports = class SubscribeModal extends ModalView
popoverTitle = $.i18n.t 'subscribe.parent_email_title' popoverTitle = $.i18n.t 'subscribe.parent_email_title'
popoverTitle += '<button type="button" class="close" onclick="$(&#39;.parent-button&#39;).popover(&#39;hide&#39;);">&times;</button>' popoverTitle += '<button type="button" class="close" onclick="$(&#39;.parent-button&#39;).popover(&#39;hide&#39;);">&times;</button>'
popoverContent = -> popoverContent = ->
console.log 'found html', $('.parent-button-popover-content').html()
$('.parent-button-popover-content').html() $('.parent-button-popover-content').html()
@$el.find('.parent-button').popover( @$el.find('.parent-button').popover(
animation: true animation: true
@ -78,6 +77,7 @@ module.exports = class SubscribeModal extends ModalView
setupPaymentMethodsInfoPopover: -> setupPaymentMethodsInfoPopover: ->
popoverTitle = $.i18n.t('subscribe.payment_methods_title') popoverTitle = $.i18n.t('subscribe.payment_methods_title')
popoverTitle += '<button type="button" class="close" onclick="$(&#39;#payment-methods-info&#39;).popover(&#39;hide&#39;);">&times;</button>'
popoverContent = "<p>" + $.i18n.t('subscribe.payment_methods_blurb1') + "</p>" popoverContent = "<p>" + $.i18n.t('subscribe.payment_methods_blurb1') + "</p>"
popoverContent += "<p>" + $.i18n.t('subscribe.payment_methods_blurb2') + " <a href='mailto:support@codecombat.com'>support@codecombat.com</a>." popoverContent += "<p>" + $.i18n.t('subscribe.payment_methods_blurb2') + " <a href='mailto:support@codecombat.com'>support@codecombat.com</a>."
@$el.find('#payment-methods-info').popover( @$el.find('#payment-methods-info').popover(