From: Coleman Watts Date: Tue, 25 Nov 2014 02:38:43 +0000 (-0500) Subject: CRM-15618 - Crude workaround for front-end WP js bug X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3a703bd2904fc174c4e42e22d1cee9ab5e3e58eb;p=civicrm-core.git CRM-15618 - Crude workaround for front-end WP js bug --- diff --git a/templates/CRM/Core/BillingBlock.tpl b/templates/CRM/Core/BillingBlock.tpl index 53cab5ec94..936410cde2 100644 --- a/templates/CRM/Core/BillingBlock.tpl +++ b/templates/CRM/Core/BillingBlock.tpl @@ -226,7 +226,7 @@ CRM.$(function($) { } if(checked) { $('#billingcheckbox').prop('checked', true); - if (CRM.billing.billingProfileIsHideable) { + if (!CRM.billing || CRM.billing.billingProfileIsHideable) { $('.billing_name_address-group').hide(); } } @@ -266,7 +266,7 @@ CRM.$(function($) { // toggle show/hide $('#billingcheckbox').click(function(){ if(this.checked) { - if (CRM.billing.billingProfileIsHideable) { + if (!CRM.billing || CRM.billing.billingProfileIsHideable) { $('.billing_name_address-group').hide(200); }