diff options
Diffstat (limited to 'themes/alps/assets')
-rw-r--r-- | themes/alps/assets/compose.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/themes/alps/assets/compose.js b/themes/alps/assets/compose.js index e6f057f..a980d77 100644 --- a/themes/alps/assets/compose.js +++ b/themes/alps/assets/compose.js @@ -1,3 +1,6 @@ +const sendButton = document.getElementById("send-button"), + saveButton = document.getElementById("save-button"); + const composeForm = document.getElementById("compose-form"); const sendProgress = document.getElementById("send-progress"); composeForm.addEventListener("submit", ev => { @@ -6,6 +9,10 @@ composeForm.addEventListener("submit", ev => { sendProgress.style.display = 'flex'; }); +saveButton.addEventListener("click", ev => { + sendProgress.querySelector(".info").innerText = "Saving draft..."; +}); + let attachments = []; const headers = document.querySelector(".create-update .headers"); @@ -41,9 +48,6 @@ function dragNOP(e) { e.preventDefault(); } -const sendButton = document.getElementById("send-button"), - saveButton = document.getElementById("save-button"); - const attachmentUUIDsNode = document.getElementById("attachment-uuids"); function updateState() { let complete = true; |