mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Removed jQuery dependencies from Jua.js
This commit is contained in:
parent
088945b636
commit
1802dda136
6 changed files with 224 additions and 491 deletions
|
|
@ -1182,12 +1182,12 @@ class ComposePopupView extends AbstractViewNext {
|
|||
const uploadCache = {},
|
||||
attachmentSizeLimit = pInt(Settings.settingsGet('AttachmentLimit')),
|
||||
oJua = new Jua({
|
||||
'action': upload(),
|
||||
'name': 'uploader',
|
||||
'queueSize': 2,
|
||||
'multipleSizeLimit': 50,
|
||||
'clickElement': this.composeUploaderButton(),
|
||||
'dragAndDropElement': this.composeUploaderDropPlace()
|
||||
action: upload(),
|
||||
name: 'uploader',
|
||||
queueSize: 2,
|
||||
multipleSizeLimit: 50,
|
||||
clickElement: this.composeUploaderButton(),
|
||||
dragAndDropElement: this.composeUploaderDropPlace()
|
||||
});
|
||||
|
||||
if (oJua) {
|
||||
|
|
|
|||
|
|
@ -416,14 +416,13 @@ class ContactsPopupView extends AbstractViewNext {
|
|||
initUploader() {
|
||||
if (this.importUploaderButton()) {
|
||||
const j = new Jua({
|
||||
'action': uploadContacts(),
|
||||
'name': 'uploader',
|
||||
'queueSize': 1,
|
||||
'multipleSizeLimit': 1,
|
||||
'disableDragAndDrop': true,
|
||||
'disableMultiple': true,
|
||||
'disableDocumentDropPrevent': true,
|
||||
'clickElement': this.importUploaderButton()
|
||||
action: uploadContacts(),
|
||||
name: 'uploader',
|
||||
queueSize: 1,
|
||||
multipleSizeLimit: 1,
|
||||
disableMultiple: true,
|
||||
disableDocumentDropPrevent: true,
|
||||
clickElement: this.importUploaderButton()
|
||||
});
|
||||
|
||||
if (j) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue