reformat click listeners

This commit is contained in:
Daniela Arcese 2017-06-09 10:47:12 -04:00
parent dea589df14
commit 3505574f35

View File

@ -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');
}