Cleanup Jua upload handler

This commit is contained in:
the-djmaze 2022-10-28 01:36:49 +02:00
parent 9130da9dca
commit 7a0ec76d25
3 changed files with 46 additions and 120 deletions

View file

@ -1045,9 +1045,6 @@ export class ComposePopupView extends AbstractViewPopup {
attachmentSizeLimit = pInt(SettingsGet('AttachmentLimit'));
oJua
// .on('onLimitReached', (limit) => {
// alert(limit);
// })
.on('onDragEnter', () => {
this.dragAndDropOver(true);
})

View file

@ -281,7 +281,6 @@ export class ContactsPopupView extends AbstractViewPopup {
const j = new Jua({
action: serverRequest('UploadContacts'),
limit: 1,
disableDocumentDropPrevent: true,
clickElement: this.importButton()
});