Skip to content

Commit

Permalink
Add subscription quantity to prefill map
Browse files Browse the repository at this point in the history
  • Loading branch information
em committed Aug 28, 2013
1 parent af7c455 commit 9bab4cf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions build/recurly.js
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,7 @@ var preFillMap = {
}
, subscription: {
couponCode: '.subscription > .coupon > .coupon_code > input'
, quantity: '.subscription > .plan > .quantity > input'
}
};

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.5 (Aug 23, 2013)
- Added default subscription: quantity option to buildSubscriptionForm

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

Expand Down
2 changes: 1 addition & 1 deletion examples/subscribe.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// in client libraries.
signature: 'needs-server-support-code',
successURL: 'confirmation.html',
planCode: 'simpleplan',
planCode: 'complexplan',
distinguishContactFromBillingInfo: true,
collectCompany: true,
collectContact: false,
Expand Down
1 change: 1 addition & 0 deletions src/js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ var preFillMap = {
}
, subscription: {
couponCode: '.subscription > .coupon > .coupon_code > input'
, quantity: '.subscription > .plan > .quantity > input'
}
};

Expand Down

0 comments on commit 9bab4cf

Please sign in to comment.