diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-11-13 11:55:56 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-11-13 11:55:56 -0500 |
commit | 1321cea241e0fa3f3ac7da38b7364b46e0858f11 (patch) | |
tree | aa911c04a4797097ac78483ba2799c82c222e4a8 /themes | |
parent | 12547e26540a123f72df347bb87f6d9505480ac2 (diff) | |
download | alps-1321cea241e0fa3f3ac7da38b7364b46e0858f11.tar.gz alps-1321cea241e0fa3f3ac7da38b7364b46e0858f11.zip |
Redirect to edit draft after saving message
Diffstat (limited to 'themes')
-rw-r--r-- | themes/alps/assets/compose.js | 10 | ||||
-rw-r--r-- | themes/alps/compose.html | 2 |
2 files changed, 8 insertions, 4 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; diff --git a/themes/alps/compose.html b/themes/alps/compose.html index 5f9d3ea..82ee283 100644 --- a/themes/alps/compose.html +++ b/themes/alps/compose.html @@ -70,7 +70,7 @@ License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"/></svg> - <span>Sending message...</span> + <span class="info">Sending message...</span> </div> </div> |