reformat click listeners

This commit is contained in:
Daniela Arcese 2017-06-09 10:47:12 -04:00
parent dea589df14
commit 3505574f35
1 changed files with 3 additions and 7 deletions

View File

@ -103,17 +103,13 @@ $(document).ready(function() {
}); });
// show popup // show popup
btn.addEventListener('click', e => { btn.addEventListener('click', toggleShow);
toggleShow();
});
// hide popup // hide popup
$popupText.find('.nvm').click(e => { $popupText.find('.nvm').click(toggleShow);
toggleShow();
});
$('#upload-progress').hide(); $('#upload-progress').hide();
$('#share-link').show(); $('#share-link').show();
}); });
function toggleShow(){ function toggleShow(){
$popupText.toggleClass('show'); $popupText.toggleClass('show');
} }