From 502962905e360312c8e3807e51d6ecb7ff891215 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Thu, 26 Jun 2014 16:14:16 -0700 Subject: [PATCH] CRM-14882 - fix indentations. ---------------------------------------- * CRM-14882: https://issues.civicrm.org/jira/browse/CRM-14882 --- .../CRM/Contribute/Form/Contribution/Main.tpl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index a145e27ffe..66012aede7 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -462,14 +462,14 @@ function toggleBillingBlockIfFree(){ var total_amount_tmp = $(this).data('raw-total'); // Hide billing questions if this is free - if (total_amount_tmp == 0){ - cj("#billing-payment-block").hide(); - } + if (total_amount_tmp == 0){ + cj("#billing-payment-block").hide(); + } else { - cj("#billing-payment-block").show(); - } - } - + cj("#billing-payment-block").show(); + } + } + CRM.$('#pricevalue').each(toggleBillingBlockIfFree); $('#priceset input').on('change', function() { -- 2.25.1