Merge remote-tracking branch 'upstream/4.4' into 4.4-4.5-2014-09-08-20-42-29
[civicrm-core.git] / templates / CRM / Contribute / Form / ContributionCharts.tpl
index fd122d4f8b65d5e5f9684513566b625a24032761..e6a721df35673f015897d470f2bc403ace5adac2 100644 (file)
@@ -1,8 +1,8 @@
 {*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -60,7 +60,7 @@
 {literal}
 <script type="text/javascript">
 
-  cj( function( ) {
+  CRM.$(function($) {
       buildChart( );
   });
 
   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>