From a7b8b6cdc781ed45a616b2f64b9102c23bcb1625 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 29 Dec 2018 08:40:51 -0600 Subject: eliminated JS cookie dependencies --- TODO | 25 +++++++++++++++++++++++++ scripts/src/notebook-edit.js | 3 +-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 TODO diff --git a/TODO b/TODO new file mode 100644 index 0000000..c2a48c1 --- /dev/null +++ b/TODO @@ -0,0 +1,25 @@ +## Note and Notebooks + * add defailt "trash" notebook and note manager to not show notes in the trash. + * add delete note option to list and detail views + * notebook main -- add form for editing all notebooks + * add loading animation when saving, hide when done. + * add search to notebook list on create and edit note pages + + +## Accounts + * port modal login to new modal system + * make settings actually editable + * add settings for showing color + * which editor??? + * hook into groups to see if user is allowed to add more notebooks + * add payment via stripe + +## Annotation + * model for annoations: + - note + - owner + - position + - dates + + +## Outlines 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) { -- cgit v1.2.3-70-g09d2