diff options
author | 2019-09-05 11:22:49 +0200 | |
---|---|---|
committer | 2019-09-05 11:22:49 +0200 | |
commit | 29b8334b060dc0c05a509d523ead4b3a30229fef (patch) | |
tree | 4dbfcfb90a3eff31acd219b27557bbdc594f589f /public/js/new.js | |
parent | Add cookie notice to login page (diff) | |
download | ferdium-server-29b8334b060dc0c05a509d523ead4b3a30229fef.tar.gz ferdium-server-29b8334b060dc0c05a509d523ead4b3a30229fef.tar.zst ferdium-server-29b8334b060dc0c05a509d523ead4b3a30229fef.zip |
Add eslint
Diffstat (limited to 'public/js/new.js')
-rw-r--r-- | public/js/new.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/public/js/new.js b/public/js/new.js index 4f54245..beaa36d 100644 --- a/public/js/new.js +++ b/public/js/new.js | |||
@@ -1,12 +1,13 @@ | |||
1 | /* eslint-env browser */ | ||
1 | const elDrop = document.getElementById('dropzone'); | 2 | const elDrop = document.getElementById('dropzone'); |
2 | const submitBtn = document.getElementById('submitbutton'); | 3 | const submitBtn = document.getElementById('submitbutton'); |
3 | const fileInput = document.getElementById('files'); | 4 | const fileInput = document.getElementById('files'); |
4 | 5 | ||
5 | elDrop.addEventListener('dragover', function (event) { | 6 | elDrop.addEventListener('dragover', (event) => { |
6 | event.preventDefault(); | 7 | event.preventDefault(); |
7 | }); | 8 | }); |
8 | 9 | ||
9 | elDrop.addEventListener('drop', async function (event) { | 10 | elDrop.addEventListener('drop', async (event) => { |
10 | event.preventDefault(); | 11 | event.preventDefault(); |
11 | 12 | ||
12 | submitBtn.disabled = true; | 13 | submitBtn.disabled = true; |
@@ -19,5 +20,5 @@ elDrop.addEventListener('drop', async function (event) { | |||
19 | submitBtn.disabled = false; | 20 | submitBtn.disabled = false; |
20 | }); | 21 | }); |
21 | elDrop.addEventListener('click', () => { | 22 | elDrop.addEventListener('click', () => { |
22 | fileInput.click(); | 23 | fileInput.click(); |
23 | }) \ No newline at end of file | 24 | }); |