Merge pull request #142 from Gluejar/fix_stripe_spinny_thing

one line js fix to stop the spinny thing when stripe reports an error
pull/1/head
thatandromeda 2013-03-15 12:55:41 -07:00
commit f3b48fa9a9
4 changed files with 5 additions and 3 deletions

View File

@ -140,7 +140,7 @@ $j(document).ready(function() {
</div>
<div class="form-row clearfix cvc">
<label>CVC:</label>
<input id="card_CVC" type="text" size="4" autocomplete="off" class="card-cvc" /> <span id="cvc_help">(what is this?)</span>
<input id="card_CVC" type="password" size="4" autocomplete="off" class="card-cvc" /> <span id="cvc_help">(what is this?)</span>
<div id="cvc_answer"><img src="/static/images/cvcimage.jpeg" alt="a typical credit card with CVC">For most cards, this is a 3-digit number at the end of the signature strip on the back. For American Express, it's a four-digit number in small print on the front.</div>
</div>
<div class="form-row clearfix initial_values">

View File

@ -52,6 +52,8 @@ function stripeResponseHandler(status, response) {
if (response.error) {
// re-enable the submit button
$j('.submit-button').removeAttr("disabled");
// stop the spinny thing
$j('.submit-button').removeClass("show-loading");
// show the errors on the form
$j(".payment-errors").html(response.error.message).show();
} else {

File diff suppressed because one or more lines are too long

View File

@ -201,7 +201,7 @@ span.menu-item-price {
padding: 10px;
div.innards {
input[type="text"] {
input[type="text"],input[type="password"] {
font-size: @font-size-larger;
line-height: @font-size-larger*1.5;
border-width: 2px;