Skip to content

Commit

Permalink
Merge pull request #2779 from MaximilianoRicoTabo/enhancement/make-ch…
Browse files Browse the repository at this point in the history
…eckout-submit-event-handler-less-wide

* Make checkout form submit event handler specific enough to match on…
  • Loading branch information
ideadude authored Apr 10, 2024
2 parents 7563ad0 + 8488598 commit 3f874fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/pmpro-checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jQuery(document).ready(function(){
}

// Find ALL <form> tags on your page
jQuery('form').submit(function(){
jQuery('form#pmpro_form').submit(function(){
// On submit disable its submit button
jQuery('input[type=submit]', this).attr('disabled', 'disabled');
jQuery('input[type=image]', this).attr('disabled', 'disabled');
Expand Down

0 comments on commit 3f874fe

Please sign in to comment.