From: Tim Otten Date: Thu, 12 Sep 2013 06:43:08 +0000 (-0700) Subject: CRM-13377 - Manipulate the main "Send Email" button but not the "Cancel" button X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=524cc1c55871bb64165a4f1c4041ed6af583c197;p=civicrm-core.git 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 --- 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'}); }); });