Skip to content
Snippets Groups Projects
Unverified Commit bce7d8ad authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #1717 from OpenTechFund/fix/replace-jquery-cookie-with-js-cookie-lib

Replace jquery cookie with js-cookie lib that is used throughout the …
parents 5a05ebc0 47e0857a
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,6 @@
{{ partner_form.media.js }}
{{ block.super }}
<script src="//cdnjs.cloudflare.com/ajax/libs/fancybox/3.4.1/jquery.fancybox.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<script src="{% static 'js/apply/fancybox-global.js' %}"></script>
<script src="{% static 'js/apply/toggle-actions-panel.js' %}"></script>
<script src="{% static 'js/apply/toggle-reviewers.js' %}"></script>
......
......@@ -67,7 +67,7 @@
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-CSRFToken': $.cookie('csrftoken')
'X-CSRFToken': window.Cookies.get('csrftoken')
},
body: JSON.stringify({
message: editedComment
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment