dataUrl = dataUrl + '&cid={/literal}{$clientID}{literal}'+'&selectedChild=case';
}
- window.location = dataUrl;
+ window.location.href = dataUrl;
}
</script>
{/literal}
CRM.loadForm(url).on('crmFormSuccess', refresh);
}
else {
- window.location = url;
+ window.location.href = url;
}
}
cj('<button>')
.text("{/literal}{ts}Reload Page{/ts}{literal}")
.click(function() {
- window.location = CRM.url('civicrm/contact/add', {
+ window.location.href = CRM.url('civicrm/contact/add', {
reset: 1,
action: 'update',
cid: {/literal}{$contactId}{literal}
;
});
</script>
-{/literal}
\ No newline at end of file
+{/literal}
function byMonthOnClick( barIndex ) {
var allData = {/literal}{$openFlashChartData}{literal};
var url = eval( "allData.by_month.on_click_urls.url_" + barIndex );
- if ( url ) window.location = url;
+ if ( url ) window.location.href = url;
}
function byYearOnClick( barIndex ) {
var allData = {/literal}{$openFlashChartData}{literal};
var url = eval( "allData.by_year.on_click_urls.url_" + barIndex );
- if ( url ) window.location = url;
+ if ( url ) window.location.href = url;
}
</script>
//if there is any form error show the dialog
//else redirect to post url
if (!cj(responseText).find('.crm-error').html()) {
- window.location = '{/literal}{$postUrl}{literal}';
+ window.location.href = '{/literal}{$postUrl}{literal}';
}
}
</script>
var displayResponseData = function(data, textStatus, jqXHR) {
if (data.redirect_url) {
- window.location = data.redirect_url;
+ window.location.href = data.redirect_url;
return;
}
});
</script>
-{/literal}
\ No newline at end of file
+{/literal}
var url = {/literal}"{$refreshURL}"{literal}
var post = url + "&key=" + provider.value;
if( refresh ) {
- window.location = post;
+ window.location.href = post;
}
}
{/literal}
<html>
<head>
<script type="text/javascript">
- window.location = "{$redirectURL}"
+ window.location.href = "{$redirectURL}"
</script>
<title>{$title}</title>
</head>
{$message}
</p>
</body>
-</html>
\ No newline at end of file
+</html>