Skip to content
Snippets Groups Projects
Commit 6e56bbfc authored by colemanw's avatar colemanw
Browse files

Hide payment options if js disabled CRM-12149

parent 7c8cc461
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
......@@ -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() );
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment