From b451ca6cc0fe0d2905fcbce609673429f867ef26 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Thu, 26 Jun 2014 16:11:53 -0700 Subject: [PATCH] CRM-14882 - fix indentations. ---------------------------------------- * CRM-14882: https://issues.civicrm.org/jira/browse/CRM-14882 --- .../CRM/Contribute/Form/Contribution/Main.tpl | 18 ++++++++++-------- templates/CRM/Price/Form/Calculate.tpl | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index 4bd752e2aa..a145e27ffe 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -460,18 +460,20 @@ updatePriceSetHighlight(); 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(); - }else{ - cj("#billing-payment-block").show(); + 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(); + } + else { + cj("#billing-payment-block").show(); } } - CRM.$('#pricevalue').each( toggleBillingBlockIfFree); + + CRM.$('#pricevalue').each(toggleBillingBlockIfFree); $('#priceset input').on('change', function() { - CRM.$('#pricevalue').each( toggleBillingBlockIfFree); + CRM.$('#pricevalue').each(toggleBillingBlockIfFree); }); }); {/literal} diff --git a/templates/CRM/Price/Form/Calculate.tpl b/templates/CRM/Price/Form/Calculate.tpl index f4273f4e8b..1b4f86a105 100644 --- a/templates/CRM/Price/Form/Calculate.tpl +++ b/templates/CRM/Price/Form/Calculate.tpl @@ -200,7 +200,7 @@ function display( totalfee ) { scriptfee = totalfee; scriptarray = price; cj('#total_amount').val( totalfee ); - cj('#pricevalue').data('raw-total', totalfee ); + cj('#pricevalue').data('raw-total', totalfee ); ( totalfee < 0 ) ? cj('table#pricelabel').addClass('disabled') : cj('table#pricelabel').removeClass('disabled'); if (typeof skipPaymentMethod == 'function') { -- 2.25.1