From 5228ed21f1873243214db65a5639873ab89c3e22 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 24 Jun 2013 14:09:17 +1200 Subject: [PATCH] CRM-12877 tidy up url --- templates/CRM/Contribute/Page/DashBoard.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Contribute/Page/DashBoard.js b/templates/CRM/Contribute/Page/DashBoard.js index f68004ceb9..2ebb3c5b3c 100644 --- a/templates/CRM/Contribute/Page/DashBoard.js +++ b/templates/CRM/Contribute/Page/DashBoard.js @@ -17,8 +17,11 @@ cj(function ($) { if (!year) { year = currentYear; } - chartUrl = CRM.url("civicrm/ajax/chart", {snippet : 4}); - chartUrl += "&year=" + year + "&type=" + charttype; + chartUrl = CRM.url("civicrm/ajax/chart", { + 'snippet' : 4, + 'year' : year, + 'type' : charttype + }); $(chartData).load(chartUrl); } -- 2.25.1