CRM-14882 - fix indentations.
authorDave Greenberg <dave@civicrm.org>
Thu, 26 Jun 2014 23:11:53 +0000 (16:11 -0700)
committerDave Greenberg <dave@civicrm.org>
Thu, 26 Jun 2014 23:11:53 +0000 (16:11 -0700)
----------------------------------------
* CRM-14882:
  https://issues.civicrm.org/jira/browse/CRM-14882

templates/CRM/Contribute/Form/Contribution/Main.tpl
templates/CRM/Price/Form/Calculate.tpl

index 4bd752e2aa35643bf2365cfce5a5054e34d8b089..a145e27ffebaf7bcc31679d0027c3dfad29153c1 100644 (file)
     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}
index f4273f4e8b85edf7b5adc5a13d71b4e4f5c4a2ba..1b4f86a1053f160eceb3a433b3412cfac3179bd0 100644 (file)
@@ -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') {