diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index 52586d64090e9ab086ef9718e7271f708a364bc8..17d67d4bb506f0ad8a37009305baf925eebd5e03 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -273,7 +273,8 @@ {/if} {if $form.payment_processor.label} - <fieldset class="crm-group payment_options-group"> + {* PP selection only works with JS enabled, so we hide it initially *} + <fieldset class="crm-group payment_options-group" style="display:none;"> <legend>{ts}Payment Options{/ts}</legend> <div class="crm-section payment_processor-section"> <div class="label">{$form.payment_processor.label}</div> diff --git a/templates/CRM/common/paymentBlock.tpl b/templates/CRM/common/paymentBlock.tpl index a11a7f551e5a6dcfe57969334ba45701acf270c6..6d75285acbbae4fe638f50276e738584fcfe3f01 100644 --- a/templates/CRM/common/paymentBlock.tpl +++ b/templates/CRM/common/paymentBlock.tpl @@ -60,6 +60,8 @@ function buildPaymentBlock( type ) { } cj( function() { + cj('.crm-group.payment_options-group').show(); + cj('input[name="payment_processor"]').change( function() { buildPaymentBlock( cj(this).val() ); });