diff options
Diffstat (limited to 'scripts/src/notebook-edit.js')
-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) { |