From f4af7a1e51ad3c93e67c1d3ecebd3d093fd379d9 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 19 Mar 2014 12:44:49 -0400 Subject: [PATCH] Update window.location assignment to use href property --- templates/CRM/Case/Audit/Audit.tpl | 2 +- templates/CRM/Case/Form/CaseView.js | 2 +- templates/CRM/Contact/Form/Edit/Lock.tpl | 4 ++-- templates/CRM/Contribute/Form/ContributionCharts.tpl | 4 ++-- templates/CRM/Profile/Form/Dynamic.tpl | 2 +- templates/CRM/Queue/Page/Runner.tpl | 4 ++-- templates/CRM/SMS/Form/Provider.tpl | 2 +- templates/CRM/common/redirectJS.tpl | 4 ++-- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/templates/CRM/Case/Audit/Audit.tpl b/templates/CRM/Case/Audit/Audit.tpl index 0dc42663aa..fa4d48b3fd 100644 --- a/templates/CRM/Case/Audit/Audit.tpl +++ b/templates/CRM/Case/Audit/Audit.tpl @@ -176,7 +176,7 @@ There's the potential for collisions (two different labels having the same short dataUrl = dataUrl + '&cid={/literal}{$clientID}{literal}'+'&selectedChild=case'; } - window.location = dataUrl; + window.location.href = dataUrl; } {/literal} diff --git a/templates/CRM/Case/Form/CaseView.js b/templates/CRM/Case/Form/CaseView.js index 751e6ea7ee..d4cb479233 100644 --- a/templates/CRM/Case/Form/CaseView.js +++ b/templates/CRM/Case/Form/CaseView.js @@ -10,7 +10,7 @@ CRM.loadForm(url).on('crmFormSuccess', refresh); } else { - window.location = url; + window.location.href = url; } } diff --git a/templates/CRM/Contact/Form/Edit/Lock.tpl b/templates/CRM/Contact/Form/Edit/Lock.tpl index ff9bb72221..a8807e50fa 100644 --- a/templates/CRM/Contact/Form/Edit/Lock.tpl +++ b/templates/CRM/Contact/Form/Edit/Lock.tpl @@ -20,7 +20,7 @@ cj(function() { cj('