Skip to content

Commit

Permalink
Fixed #17790 - Made the Ajax CSRF jQuery example work with jQuery in …
Browse files Browse the repository at this point in the history
…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
carljm committed Mar 2, 2012
1 parent e88a656 commit 8cadf1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ref/contrib/csrf.txt
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ that allow headers to be set on every request. In jQuery, you can use the


.. code-block:: javascript .. code-block:: javascript


$(document).ajaxSend(function(event, xhr, settings) { jQuery(document).ajaxSend(function(event, xhr, settings) {
function getCookie(name) { function getCookie(name) {
var cookieValue = null; var cookieValue = null;
if (document.cookie && document.cookie != '') { if (document.cookie && document.cookie != '') {
Expand Down

0 comments on commit 8cadf1d

Please sign in to comment.