reformat click listeners
This commit is contained in:
parent
dea589df14
commit
3505574f35
1 changed files with 3 additions and 7 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue