From 524cc1c55871bb64165a4f1c4041ed6af583c197 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 11 Sep 2013 23:43:08 -0700 Subject: [PATCH] CRM-13377 - Manipulate the main "Send Email" button but not the "Cancel" button ---------------------------------------- * CRM-13377: "Send email" produces double "Processing" button http://issues.civicrm.org/jira/browse/CRM-13377 --- templates/CRM/Contact/Form/Task/EmailCommon.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Contact/Form/Task/EmailCommon.js b/templates/CRM/Contact/Form/Task/EmailCommon.js index 769e7dc48a..ad27b61919 100644 --- a/templates/CRM/Contact/Form/Task/EmailCommon.js +++ b/templates/CRM/Contact/Form/Task/EmailCommon.js @@ -2,7 +2,8 @@ cj(function ($) { //do not copy & paste this - find a way to generalise it 'use strict'; $().crmAccordions(); - $('.form-submit').on("click", function() { - $('.form-submit').attr({value: ts('Processing'), disabled: 'disabled'}); + // NOTE: Might be safer to say $('[name=_qf_Email_upload]') + $('.form-submit').not('.cancel').on("click", function() { + $('.form-submit').not('.cancel').attr({value: ts('Processing'), disabled: 'disabled'}); }); }); -- 2.25.1