mirror of
https://github.com/django/django.git
synced 2025-07-22 12:45:18 +00:00
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
This commit is contained in:
parent
e88a65660f
commit
8cadf1d79a
1 changed files with 1 additions and 1 deletions
|
@ -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 != '') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue