Use CRM.console to prevent errors in older browsers
authorColeman Watts <coleman@civicrm.org>
Fri, 3 Oct 2014 20:40:45 +0000 (16:40 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 3 Oct 2014 20:40:45 +0000 (16:40 -0400)
templates/CRM/Case/Page/DashboardSelector.tpl
templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl
templates/CRM/Pledge/Page/UserDashboard.tpl

index b4374419bd3db850e4c1a234f21abf7b3a1f97f9..dca5a445bbf025a87f91f5ba62b06797750f2599 100644 (file)
@@ -127,7 +127,7 @@ function {/literal}{$context}{$list}{literal}CaseDetails( caseId, contactId, typ
                   cj( '#'+ context + '-' + type +'-casedetails-' + caseId ).html( data );
                       },
             error   : function( XMLHttpRequest, textStatus, errorThrown ) {
-                        console.error( 'Error: '+ textStatus );
+                        CRM.console('error', 'Error: ', textStatus);
                       }
          });
 }
index d45327f365e6e65de65f552c82f92b65b8f058a1..a42f8e3334a0c1c15f08db5653f3a935b3f3f2b3 100644 (file)
@@ -268,7 +268,7 @@ function setLocationDetails(contactID , reset) {
       }
     },
     error       : function(XMLHttpRequest, textStatus, errorThrown) {
-      console.error("HTTP error status: ", textStatus);
+      CRM.console('error', "HTTP error status: ", textStatus);
     }
   });
 }
index 103472a8b2469feccfa2ec39b04ef87bcb88d217..e6b8a2f007a3c4002857ad381ae41c1eecb07901 100644 (file)
@@ -124,7 +124,7 @@ function buildPaymentDetails( pledgeId, contactId )
                               cj( '#paymentDetails' + pledgeId ).html( data ).trigger('crmLoad');
                          },
                error   : function( XMLHttpRequest, textStatus, errorThrown ) {
-                                 console.error( 'Error: '+ textStatus );
+                                 CRM.console('error', 'Error: ', textStatus);
                         }
          });
 }