aboutsummaryrefslogtreecommitdiff
path: root/themes/alps/assets
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-10-29 15:30:55 -0400
committerDrew DeVault <sir@cmpwn.com>2020-10-29 15:30:55 -0400
commit26e6e66b04059b1063f03779f962e5bb6ead4b7d (patch)
treee1457d14e84cb98a2dc714c03f91f81ed0f7ef1e /themes/alps/assets
parenta393429f01e63aa37f58f8cbe4a810e59852fa61 (diff)
downloadalps-26e6e66b04059b1063f03779f962e5bb6ead4b7d.tar.gz
alps-26e6e66b04059b1063f03779f962e5bb6ead4b7d.zip
attachments.js: remove unused variables
Diffstat (limited to 'themes/alps/assets')
-rw-r--r--themes/alps/assets/attachments.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/themes/alps/assets/attachments.js b/themes/alps/assets/attachments.js
index bd8c78b..1f02ab5 100644
--- a/themes/alps/assets/attachments.js
+++ b/themes/alps/assets/attachments.js
@@ -16,7 +16,7 @@ attachmentsInput.addEventListener("input", ev => {
}
});
-document.body.addEventListener("drop", ev => {
+window.addEventListener("drop", ev => {
ev.preventDefault();
const files = ev.dataTransfer.files;
for (let i = 0; i < files.length; i++) {
@@ -27,12 +27,6 @@ document.body.addEventListener("drop", ev => {
const sendButton = document.getElementById("send-button"),
saveButton = document.getElementById("save-button");
-const XHR_UNSENT = 0,
- XHR_OPENED = 1,
- XHR_HEADERS_RECEIVED = 2,
- XHR_LOADING = 3,
- XHR_DONE = 4;
-
const attachmentUUIDsNode = document.getElementById("attachment-uuids");
function updateState() {
let complete = true;