From 34e0f341efb91228c1ac8efd8f38b27c63f831f7 Mon Sep 17 00:00:00 2001 From: Lutchy Horace Date: Mon, 29 Jan 2024 07:36:56 -0500 Subject: [PATCH] Save tasks in JSON pretty print, and fixed todo.html addtask() --- .gitignore | 1 + staff/load_tasks.php | 4 ++-- staff/save_tasks.php | 5 +++-- staff/todo.html | 29 ++++++++++++++++++++++++++++- 4 files changed, 34 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 534f59e..d8049bb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /tos.html-old /sitemap.xml +/staff/tasks.json diff --git a/staff/load_tasks.php b/staff/load_tasks.php index 0a78ead..641873b 100644 --- a/staff/load_tasks.php +++ b/staff/load_tasks.php @@ -1,5 +1,5 @@ diff --git a/staff/save_tasks.php b/staff/save_tasks.php index 7aaa6d0..1e4a1ea 100644 --- a/staff/save_tasks.php +++ b/staff/save_tasks.php @@ -1,8 +1,9 @@ diff --git a/staff/todo.html b/staff/todo.html index 2b66a62..52a7503 100644 --- a/staff/todo.html +++ b/staff/todo.html @@ -57,8 +57,35 @@