aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-12-29 08:40:51 -0600
committerluxagraf <sng@luxagraf.net>2018-12-29 08:40:51 -0600
commita7b8b6cdc781ed45a616b2f64b9102c23bcb1625 (patch)
treed44ce8ca1bd16c3492860dab9b80d3940b87bb84
parent4f7b84194b056b5d6d9acca4cceb2cabc04fd8a5 (diff)
eliminated JS cookie dependencies
-rw-r--r--TODO25
-rw-r--r--scripts/src/notebook-edit.js3
2 files changed, 26 insertions, 2 deletions
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) {