diff --git a/frontend/src/upload.js b/frontend/src/upload.js index 37b8740e..0ca34460 100644 --- a/frontend/src/upload.js +++ b/frontend/src/upload.js @@ -103,17 +103,13 @@ $(document).ready(function() { }); // show popup - btn.addEventListener('click', e => { - toggleShow(); - }); + btn.addEventListener('click', toggleShow); // hide popup - $popupText.find('.nvm').click(e => { - toggleShow(); - }); + $popupText.find('.nvm').click(toggleShow); $('#upload-progress').hide(); $('#share-link').show(); }); - + function toggleShow(){ $popupText.toggleClass('show'); }