From 84885988d2814b3e5ab89789378841138241f4ac Mon Sep 17 00:00:00 2001 From: maximilianoRicoTabo Date: Mon, 22 Jan 2024 14:51:17 -0300 Subject: [PATCH] * Make checkout form submit event handler specific enough to match only checkout form and not others. --- js/pmpro-checkout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/pmpro-checkout.js b/js/pmpro-checkout.js index 250631d57..46d1e10c0 100644 --- a/js/pmpro-checkout.js +++ b/js/pmpro-checkout.js @@ -130,7 +130,7 @@ jQuery(document).ready(function(){ } // Find ALL
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');