summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMarc <marctc@gmail.com>2015-08-19 14:29:02 +0200
committerTim Graham <timograham@gmail.com>2015-08-19 10:04:01 -0400
commitf9de1972685ab5ab31ce483a297d85d3e119088b (patch)
tree03f23005ecc25d7e4fd5d76b7b83f421206f9787 /docs
parent47201371d2805391f4dec3528cdc05f083814165 (diff)
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/csrf.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/csrf.txt b/docs/ref/csrf.txt
index 84ba372491..590990571f 100644
--- a/docs/ref/csrf.txt
+++ b/docs/ref/csrf.txt
@@ -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::