From: Coleman Watts Date: Wed, 27 Jan 2016 21:51:34 +0000 (-0500) Subject: Cleanup duplicate js X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=079e7379561a2f728d0af760ecaae4bfb861315e;p=civicrm-core.git Cleanup duplicate js --- diff --git a/templates/CRM/Core/BillingBlock.tpl b/templates/CRM/Core/BillingBlock.tpl index adc489308d..b6d0e67e4b 100644 --- a/templates/CRM/Core/BillingBlock.tpl +++ b/templates/CRM/Core/BillingBlock.tpl @@ -202,18 +202,20 @@ .replace(/-/g, ''); $('#credit_card_number').val(cc); }); - - function toggleConfirmButton() { - var suppressSubmitButton = {/literal}"{$suppressSubmitButton}"{literal}; - $("#crm-submit-buttons").toggle(!suppressSubmitButton); - } - toggleConfirmButton(); - $('input[name="payment_processor_id"]').change(toggleConfirmButton); }); {/literal} {/if} +{if $suppressSubmitButton} +{literal} + +{/literal} +{/if} {/crmRegion} {crmRegion name="billing-block-post"} {* Payment processors sometimes need to append something to the end of the billing block. We create a region for diff --git a/templates/CRM/Financial/Form/PaypalExpress.tpl b/templates/CRM/Financial/Form/PaypalExpress.tpl index 80c8ca9493..c13c69b5eb 100644 --- a/templates/CRM/Financial/Form/PaypalExpress.tpl +++ b/templates/CRM/Financial/Form/PaypalExpress.tpl @@ -43,11 +43,3 @@ -{literal} - -{/literal}