CRM-15618 - Crude workaround for front-end WP js bug
authorColeman Watts <coleman@civicrm.org>
Tue, 25 Nov 2014 02:38:43 +0000 (21:38 -0500)
committerColeman Watts <coleman@civicrm.org>
Tue, 25 Nov 2014 02:38:43 +0000 (21:38 -0500)
templates/CRM/Core/BillingBlock.tpl

index 53cab5ec941c0157525700c0730c2f53855d8a58..936410cde25bf43ebd37fe867b4d9d64ac5310ca 100644 (file)
@@ -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);
       }