Skip to content

Commit

Permalink
Merge pull request #569 from jimwebb/issue/568
Browse files Browse the repository at this point in the history
Force JavaScript validation to only look at Give forms
  • Loading branch information
Devin Walker committed Apr 8, 2016
2 parents 061b2fe + 628a701 commit 5e609b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/frontend/give-checkout-global.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jQuery(function ($) {
/**
* Validate cc fields on change
*/
doc.on('keyup change', '.card-number, .card-cvc, .card-expiry', function () {
doc.on( 'keyup change', '.give-form .card-number, .give-form .card-cvc, .give-form .card-expiry', function () {
var el = $(this),
give_form = el.parents('form.give-form'),
id = el.attr('id'),
Expand Down

0 comments on commit 5e609b6

Please sign in to comment.