Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #17790 - Made the Ajax CSRF jQuery example work with jQuery in …

…compatibility mode, too. Thanks Jonathan Hayward for the suggestion.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17623 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8cadf1d79a00819ee153eafa9590abe21249969c 1 parent e88a656
Carl Meyer authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/ref/contrib/csrf.txt
2  docs/ref/contrib/csrf.txt
@@ -91,7 +91,7 @@ that allow headers to be set on every request. In jQuery, you can use the
91 91
 
92 92
 .. code-block:: javascript
93 93
 
94  
-    $(document).ajaxSend(function(event, xhr, settings) {
  94
+    jQuery(document).ajaxSend(function(event, xhr, settings) {
95 95
         function getCookie(name) {
96 96
             var cookieValue = null;
97 97
             if (document.cookie && document.cookie != '') {

0 notes on commit 8cadf1d

Please sign in to comment.
Something went wrong with that request. Please try again.