From: Dave Greenberg Date: Thu, 26 Jun 2014 23:11:53 +0000 (-0700) Subject: CRM-14882 - fix indentations. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b451ca6cc0fe0d2905fcbce609673429f867ef26;p=civicrm-core.git CRM-14882 - fix indentations. ---------------------------------------- * CRM-14882: https://issues.civicrm.org/jira/browse/CRM-14882 --- 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') {