From 3505574f35cc6e59076ffbc40b1f3ff12ec2c1fd Mon Sep 17 00:00:00 2001 From: Daniela Arcese Date: Fri, 9 Jun 2017 10:47:12 -0400 Subject: [PATCH] reformat click listeners --- frontend/src/upload.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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'); }