Permalink
Browse files

last commit broke show/hide credit cards, fixed

  • Loading branch information...
em committed Jul 23, 2011
1 parent 145a747 commit 7cbde776405fa2b288f50e437b6ef19ae3a7940e
Showing with 2 additions and 2 deletions.
  1. +2 −2 recurly.js
View
@@ -1038,13 +1038,13 @@ function initBillingInfoForm($form, options) {
$form.find('.card_number input').bind('change keyup', function() {
var type = R.detectCardType( $(this).val() );
if(type) {
- $acceptedCards.find('li').each(function(){
+ $acceptedCards.find('.card').each(function(){
$(this).toggleClass('match', $(this).hasClass(type));
$(this).toggleClass('no_match', !$(this).hasClass(type));
});
}
else {
- $acceptedCards.find('li').removeClass('match no_match');
+ $acceptedCards.find('.card').removeClass('match no_match');
}
});

0 comments on commit 7cbde77

Please sign in to comment.