diff options
author | luxagraf <sng@luxagraf.net> | 2018-12-29 08:40:51 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-12-29 08:40:51 -0600 |
commit | a7b8b6cdc781ed45a616b2f64b9102c23bcb1625 (patch) | |
tree | d44ce8ca1bd16c3492860dab9b80d3940b87bb84 /scripts | |
parent | 4f7b84194b056b5d6d9acca4cceb2cabc04fd8a5 (diff) |
eliminated JS cookie dependencies
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/src/notebook-edit.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/src/notebook-edit.js b/scripts/src/notebook-edit.js index c1aa278..802ec79 100644 --- a/scripts/src/notebook-edit.js +++ b/scripts/src/notebook-edit.js @@ -64,7 +64,6 @@ function initNotebookCreator(btn, title, url) { }; } } - function edit_notebook(btn, title, form, picker, fname, url){ var form_inputs = form.getElementsByTagName('input'); console.log(picker); @@ -97,7 +96,7 @@ function edit_notebook(btn, title, form, picker, fname, url){ //console.log(JSON.stringify(data, null, ' ')); var request = new XMLHttpRequest(); request.open('PATCH', url); - var csrftoken = Cookies.get('csrftoken'); + var csrftoken = getCookie('csrftoken'); request.setRequestHeader('X-CSRFToken', csrftoken); request.onload = function() { if (request.status >= 200 && request.status < 400) { |