From 822863c1311b5d518fa646fd7449b69f88b5d049 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 3 Oct 2014 16:40:45 -0400 Subject: [PATCH] Use CRM.console to prevent errors in older browsers --- templates/CRM/Case/Page/DashboardSelector.tpl | 2 +- templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl | 2 +- templates/CRM/Pledge/Page/UserDashboard.tpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/CRM/Case/Page/DashboardSelector.tpl b/templates/CRM/Case/Page/DashboardSelector.tpl index b4374419bd..dca5a445bb 100644 --- a/templates/CRM/Case/Page/DashboardSelector.tpl +++ b/templates/CRM/Case/Page/DashboardSelector.tpl @@ -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); } }); } diff --git a/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl b/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl index d45327f365..a42f8e3334 100644 --- a/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl +++ b/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl @@ -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); } }); } diff --git a/templates/CRM/Pledge/Page/UserDashboard.tpl b/templates/CRM/Pledge/Page/UserDashboard.tpl index 103472a8b2..e6b8a2f007 100644 --- a/templates/CRM/Pledge/Page/UserDashboard.tpl +++ b/templates/CRM/Pledge/Page/UserDashboard.tpl @@ -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); } }); } -- 2.25.1