From 079e7379561a2f728d0af760ecaae4bfb861315e Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 27 Jan 2016 16:51:34 -0500 Subject: [PATCH] Cleanup duplicate js --- templates/CRM/Core/BillingBlock.tpl | 16 +++++++++------- templates/CRM/Financial/Form/PaypalExpress.tpl | 8 -------- 2 files changed, 9 insertions(+), 15 deletions(-) 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} -- 2.25.1