From 8858ddf43c9c285a6afed91e2fc89804893009b2 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sat, 30 Sep 2023 00:47:08 -0400 Subject: [PATCH] upload.js: moved these functions into own file. Good clean separation of functions. This should allow us to handle uploads in lots of different places in the system. --- webcit-ng/static/css/webcit.css | 5 +- webcit-ng/static/index.html | 1 + webcit-ng/static/js/upload.js | 148 +++++++++++++++++++++++++++++++ webcit-ng/static/js/view_mail.js | 134 +--------------------------- 4 files changed, 154 insertions(+), 134 deletions(-) create mode 100644 webcit-ng/static/js/upload.js diff --git a/webcit-ng/static/css/webcit.css b/webcit-ng/static/css/webcit.css index 359b79013..503cf67d5 100644 --- a/webcit-ng/static/css/webcit.css +++ b/webcit-ng/static/css/webcit.css @@ -651,7 +651,7 @@ blockquote pre { } .ctdl-upload.highlight { - border-color: purple; + border-color: Blue; } .ctdl-compose-attachments-title { @@ -665,7 +665,8 @@ blockquote pre { align-content: start } -.my-form { +.ctdl-upload-form { + text-align: center; margin-bottom: 10px; } diff --git a/webcit-ng/static/index.html b/webcit-ng/static/index.html index b6f270668..9fa702b25 100644 --- a/webcit-ng/static/index.html +++ b/webcit-ng/static/index.html @@ -75,6 +75,7 @@ +