Created
July 6, 2010 19:06
-
-
Save tgautier/465791 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/hitcount/templatetags/hitcount_tags.py | |
+++ b/hitcount/templatetags/hitcount_tags.py | |
@@ -153,7 +153,7 @@ class GetHitCountJavascript(template.Node): | |
obj, created = HitCount.objects.get_or_create(content_type=ctype, | |
object_pk=object_pk) | |
- js = "$.post( '" + reverse('hitcount_update_ajax') + "'," + \ | |
+ js = "jQuery.post( '" + reverse('hitcount_update_ajax') + "'," + \ | |
"\n\t{ hitcount_pk : '" + str(obj.pk) + "' },\n" + \ | |
"\tfunction(data, status) {\n" + \ | |
"\t\tif (data.status == 'error') {\n" + \ | |
@@ -172,7 +172,7 @@ def get_hit_count_javascript(parser, token): | |
<script src="/media/js/jquery-latest.js" type="text/javascript"></script> | |
<script type="text/javascript"><!-- | |
- $(document).ready(function() { | |
+ jQuery(document).ready(function() { | |
{% get_hit_count_javascript for [object] %} | |
}); | |
--></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment