Kaydet (Commit) f9de1972 authored tarafından Marc's avatar Marc Kaydeden (comit) Tim Graham

Recommended the JavaScript Cookie library instead of jQuery cookie.

jQuery cookie is no longer maintained in favor of the JavaScript
cookie library. This also removes the jQuery dependency.
üst 47201371
......@@ -117,12 +117,12 @@ Acquiring the token is straightforward:
}
var csrftoken = getCookie('csrftoken');
The above code could be simplified by using the `jQuery cookie plugin
<http://plugins.jquery.com/cookie/>`_ to replace ``getCookie``:
The above code could be simplified by using the `JavaScript Cookie library
<https://github.com/js-cookie/js-cookie/>`_ to replace ``getCookie``:
.. code-block:: javascript
var csrftoken = $.cookie('csrftoken');
var csrftoken = Cookies.get('csrftoken');
.. note::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment