Author: carljm
Date: 2012-03-02 08:06:11 -0800 (Fri, 02 Mar 2012)
New Revision: 17623

Modified:
   django/trunk/docs/ref/contrib/csrf.txt
Log:
Fixed #17790 - Made the Ajax CSRF jQuery example work with jQuery in 
compatibility mode, too. Thanks Jonathan Hayward for the suggestion.

Modified: django/trunk/docs/ref/contrib/csrf.txt
===================================================================
--- django/trunk/docs/ref/contrib/csrf.txt      2012-03-02 11:29:14 UTC (rev 
17622)
+++ django/trunk/docs/ref/contrib/csrf.txt      2012-03-02 16:06:11 UTC (rev 
17623)
@@ -91,7 +91,7 @@
 
 .. code-block:: javascript
 
-    $(document).ajaxSend(function(event, xhr, settings) {
+    jQuery(document).ajaxSend(function(event, xhr, settings) {
         function getCookie(name) {
             var cookieValue = null;
             if (document.cookie && document.cookie != '') {

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to