From 1680408a5387657d253f7337fbc497ed1b9421f2 Mon Sep 17 00:00:00 2001
From: Heiko Henning <h.henning@educa.ch>
Date: Wed, 30 May 2012 16:47:34 +0200
Subject: [PATCH] fix inline code jQuery issue

---
 google_analytics_counter.module |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/google_analytics_counter.module b/google_analytics_counter.module
index 3b5a566..3592928 100644
--- a/google_analytics_counter.module
+++ b/google_analytics_counter.module
@@ -727,8 +727,8 @@ function google_analytics_counter_display($path = '') {
       $retrytimeseconds = 7;
       $retrytime = $retrytimeseconds * 1000;
       $js_code .= <<<EOT
-$(document).ready(function(){
-setTimeout("gac_request_new_count()",$retrytime);
+jQuery(document).ready(function(){
+  setTimeout("gac_request_new_count()",$retrytime);
 });
 EOT;
     }
@@ -745,13 +745,13 @@ EOT;
   $filename = "google_analytics_counter/gac_get_count";
   $js_code .= <<<EOT
 function gac_request_new_count(){
-  $.getJSON(Drupal.settings.basePath + "$filename" + "/" + "$path", {nocache: "1"}, function(response) {
-    $.each(response, function(id, contents) {
+  jQuery.getJSON(Drupal.settings.basePath + "$filename" + "/" + "$path", {nocache: "1"}, function(response) {
+    jQuery.each(response, function(id, contents) {
       if (contents == '') {
-        $(id).parent().parent().parent().hide();
+        jQuery(id).parent().parent().parent().hide();
       }
       else {
-        $(id).html(contents);
+        jQuery(id).html(contents);
       }
     });
   });
-- 
1.7.0.4

