Merge pull request #4063 from colemanw/buttonFixes
[civicrm-core.git] / templates / CRM / Core / BillingBlock.tpl
index d3d2f91d009408ac5dba4fb825325e0bcbb7ed8b..53cab5ec941c0157525700c0730c2f53855d8a58 100644 (file)
@@ -226,7 +226,9 @@ CRM.$(function($) {
   }
   if(checked) {
     $('#billingcheckbox').prop('checked', true);
-    $('.billing_name_address-group').hide();
+    if (CRM.billing.billingProfileIsHideable) {
+      $('.billing_name_address-group').hide();
+    }
   }
 
   // onchange handlers for non-billing fields
@@ -264,7 +266,9 @@ CRM.$(function($) {
   // toggle show/hide
   $('#billingcheckbox').click(function(){
     if(this.checked) {
-      $('.billing_name_address-group').hide(200);
+      if (CRM.billing.billingProfileIsHideable) {
+        $('.billing_name_address-group').hide(200);
+      }
 
       // copy all values
       for(var id in input_ids) {