Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
give the forms more accurate IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Mar 17, 2015
1 parent 6545ff4 commit 902c231
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions js/gratipay/payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Gratipay.payments.ba = {};

Gratipay.payments.ba.init = function(participantId) {
Gratipay.payments.init(participantId);
$('#payout').submit(Gratipay.payments.ba.submit);
$('form#bank-account').submit(Gratipay.payments.ba.submit);
};

Gratipay.payments.ba.submit = function (e) {
Expand Down Expand Up @@ -203,7 +203,7 @@ Gratipay.payments.cc = {};

Gratipay.payments.cc.init = function(participantId) {
Gratipay.payments.init(participantId);
$('form#payment').submit(Gratipay.payments.cc.submit);
$('form#credit-card').submit(Gratipay.payments.cc.submit);
Gratipay.payments.cc.formatInputs(
$('#card_number'),
$('#expiration_month'),
Expand Down Expand Up @@ -346,7 +346,7 @@ Gratipay.payments.cc.submit = function(e) {
// Adapt our form lingo to balanced nomenclature.

function val(field) {
return $('form#payment input[id="' + field + '"]').val();
return $('form#credit-card input[id="' + field + '"]').val();
}

var credit_card = {}; // holds CC info
Expand Down
2 changes: 1 addition & 1 deletion www/bank-account.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ title = _("Bank Account")
{% endif %}
</style>
<div class="cc-ba">
<form id="payout" autocomplete="off">
<form id="bank-account" autocomplete="off">
<div class="constrain-width clearfix">

{% if account and 'merchant' in account.roles %}
Expand Down
2 changes: 1 addition & 1 deletion www/credit-card.html.spt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ title = _("Credit Card")
{% endif %}
</style>
<div class="cc-ba">
<form id="payment" autocomplete="off">
<form id="credit-card" autocomplete="off">
<div class="constrain-width clearfix">

<h2>{{ _("Required") }}</h2>
Expand Down

0 comments on commit 902c231

Please sign in to comment.