﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30299	Remove jQuery dependency from getCookie() function in CSRF docs	Matthew Pava	nobody	"The Django docs provide a very nice function to obtain the session cookie,  but it depends on jQuery being installed.

The code is here:
https://docs.djangoproject.com/en/2.1/ref/csrf/#ajax

We should remove the dependency on jQuery, and it looks like there's only one line that needs to be updated.
Replace
`var cookie = jQuery.trim(cookies[i]);`
with
`var cookie = cookies[i].trim();`

str.trim() is [https://caniuse.com/#search=trim supported] in every modern browser.
"	Cleanup/optimization	closed	Documentation	2.1	Normal	fixed	ajax jquery getCookie		Ready for checkin	0	0	0	0	1	0
