X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=templates%2FCRM%2FCore%2FBillingBlock.tpl;h=53cab5ec941c0157525700c0730c2f53855d8a58;hb=22702cb5947475e2af3e9c9f6c5e6a0347a29621;hp=d3d2f91d009408ac5dba4fb825325e0bcbb7ed8b;hpb=ae8f569f53c5ff36db7145b516fd5a0af3a9a6c4;p=civicrm-core.git diff --git a/templates/CRM/Core/BillingBlock.tpl b/templates/CRM/Core/BillingBlock.tpl index d3d2f91d00..53cab5ec94 100644 --- a/templates/CRM/Core/BillingBlock.tpl +++ b/templates/CRM/Core/BillingBlock.tpl @@ -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) {