Skip to content

Instantly share code, notes, and snippets.

@tgautier
Created July 6, 2010 19:06
Show Gist options
  • Save tgautier/465791 to your computer and use it in GitHub Desktop.
Save tgautier/465791 to your computer and use it in GitHub Desktop.
--- 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