Skip to content

Commit

Permalink
Workaround a jQuery bug
Browse files Browse the repository at this point in the history
  • Loading branch information
em committed Aug 23, 2013
1 parent e7453e3 commit af7c455
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
10 changes: 5 additions & 5 deletions build/recurly.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Recurly.js - v2.2.3
// Recurly.js - v2.2.4
//
// Communicates with Recurly <https://recurly.com> via a JSONP API,
// generates UI, handles user error, and passes control to the client
Expand Down Expand Up @@ -50,7 +50,7 @@ R.settings = {
, oneErrorPerField: true
};

R.version = '2.2.3';
R.version = '2.2.4';

R.dom = {};

Expand Down Expand Up @@ -1260,10 +1260,10 @@ function initCommonForm($form, options) {
var $li = $(this).parent();

if($input.val().length > 0) {
$li.find('.placeholder').hide();
$li.find('.placeholder').css({display:'none'});
}
else {
$li.find('.placeholder').show();
$li.find('.placeholder').css({display:'block'});
}
});

Expand Down Expand Up @@ -1340,7 +1340,7 @@ function initBillingInfoForm($form, options) {
$opt.find('input[type=radio]').prop('checked', true);

if($opt.is('.card_option')) {
// Show/hide is broken in jQuery 1
// Show/hide is broken in jQuery 1.9
$form.find('.credit_card').css({display:'block'});
$form.find('.paypal').css({display:'none'});
$input.val('');
Expand Down
2 changes: 1 addition & 1 deletion build/recurly.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#Recurly.js CHANGELOG

##Version 2.2.4 (Aug 23, 2013)
- Workaround a bug in jQuery 1.9 that throws style undefined exceptions.

##Version 2.2.3 (Aug 13, 2013)
- Fix an issue where first/last name show up for PayPal when distinguishContactFromBillingInfo is true

Expand Down
3 changes: 3 additions & 0 deletions examples/subscribe.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
'american_express',
'visa'],
acceptPaypal: true,
subscription: {
couponCode: '123'
},
account: {
firstName: 'Joe',
lastName: 'User',
Expand Down
6 changes: 3 additions & 3 deletions src/js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ function initCommonForm($form, options) {
var $li = $(this).parent();

if($input.val().length > 0) {
$li.find('.placeholder').hide();
$li.find('.placeholder').css({display:'none'});
}
else {
$li.find('.placeholder').show();
$li.find('.placeholder').css({display:'block'});
}
});

Expand Down Expand Up @@ -281,7 +281,7 @@ function initBillingInfoForm($form, options) {
$opt.find('input[type=radio]').prop('checked', true);

if($opt.is('.card_option')) {
// Show/hide is broken in jQuery 1
// Show/hide is broken in jQuery 1.9
$form.find('.credit_card').css({display:'block'});
$form.find('.paypal').css({display:'none'});
$input.val('');
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.3
2.2.4

0 comments on commit af7c455

Please sign in to comment.