CRM-12877 tidy up url
authoreileen <eileen@fuzion.co.nz>
Mon, 24 Jun 2013 02:09:17 +0000 (14:09 +1200)
committereileen <eileen@fuzion.co.nz>
Mon, 24 Jun 2013 02:09:17 +0000 (14:09 +1200)
templates/CRM/Contribute/Page/DashBoard.js

index f68004ceb97dbb159d4acfbfe5257aedc9266c3b..2ebb3c5b3c73f56758b03e4719c177168b0a5be6 100644 (file)
@@ -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);
   }