CRM-15432 - hide payment options block along with billing info when price set value...
authorDave Greenberg <dave@civicrm.org>
Tue, 14 Oct 2014 00:33:14 +0000 (17:33 -0700)
committerDave Greenberg <dave@civicrm.org>
Tue, 14 Oct 2014 00:33:14 +0000 (17:33 -0700)
----------------------------------------
* CRM-15432:
  https://issues.civicrm.org/jira/browse/CRM-15432

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

index 4fe19ea10eaf1e536fc9ed51efd7e1561d82c85b..e767cd12c0a71ff2449384f3624e00c0a2e582d4 100644 (file)
       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(); 
+        cj("#billing-payment-block").hide();
+        cj(".payment_options-group").hide();  
       } 
       else {
-        cj("#billing-payment-block").show(); 
+        cj("#billing-payment-block").show();
+        cj(".payment_options-group").show(); 
       }
     }