From 39e1d22828a06abc668b47ae7c83018e2616b41f Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sun, 11 Oct 2020 08:00:14 +1100 Subject: [PATCH] dev/core#2012 Update javascript to support change in the way buttons are rendered on contribution forms --- js/dpm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/dpm.js b/js/dpm.js index 6d9ae1a1..ae901022 100644 --- a/js/dpm.js +++ b/js/dpm.js @@ -16,7 +16,7 @@ cj(function ($) { // hide fields that are used for error display before validation $('#iats-dpm-continue .crm-error').hide(); /* initiate an ajax submission of the billing dadta: check for required fields, then do a background POST */ - $('#crm-submit-buttons .crm-button input').click(function( defaultSubmitEvent ) { + $('#crm-submit-buttons .crm-button input, #crm-submit-buttons .crm-button button').click(function( defaultSubmitEvent ) { var inputButton = $(this); inputButton.val('Processing ...').prop('disabled',true); // reset the list of errors