diff options
| author | Carl Meyer <carl@oddbird.net> | 2012-03-02 16:06:11 +0000 |
|---|---|---|
| committer | Carl Meyer <carl@oddbird.net> | 2012-03-02 16:06:11 +0000 |
| commit | 8cadf1d79a00819ee153eafa9590abe21249969c (patch) | |
| tree | 1156c0f0795d932eca8961ecd1bf3160b403ba91 /docs/ref | |
| parent | e88a65660f8d114b8c5e8670f228af7f4bdd81a0 (diff) | |
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
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/csrf.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/contrib/csrf.txt b/docs/ref/contrib/csrf.txt index 564f3b58b6..0ff9bd1a51 100644 --- a/docs/ref/contrib/csrf.txt +++ b/docs/ref/contrib/csrf.txt @@ -91,7 +91,7 @@ that allow headers to be set on every request. In jQuery, you can use the .. 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 != '') { |
