From 3fa52296006b20347919287055d6dde7b08a2478 Mon Sep 17 00:00:00 2001 From: Marc Date: Wed, 19 Aug 2015 14:29:02 +0200 Subject: [PATCH] [1.8.x] 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. Backport of f9de1972685ab5ab31ce483a297d85d3e119088b from master --- docs/ref/csrf.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/ref/csrf.txt b/docs/ref/csrf.txt index 9bd3198719..85810b9d8b 100644 --- a/docs/ref/csrf.txt +++ b/docs/ref/csrf.txt @@ -114,12 +114,12 @@ Acquiring the token is straightforward: } var csrftoken = getCookie('csrftoken'); -The above code could be simplified by using the `jQuery cookie plugin -`_ to replace ``getCookie``: +The above code could be simplified by using the `JavaScript Cookie library +`_ to replace ``getCookie``: .. code-block:: javascript - var csrftoken = $.cookie('csrftoken'); + var csrftoken = Cookies.get('csrftoken'); .. note::