mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Rename 'ajax' to 'json' because we don't use XML
We use json as response
This commit is contained in:
parent
76cf24f426
commit
950579c7f5
18 changed files with 83 additions and 91 deletions
5
vendors/jua/jua.js
vendored
5
vendors/jua/jua.js
vendored
|
|
@ -88,7 +88,7 @@
|
|||
* @param {Jua} oJua
|
||||
* @param {Object} oOptions
|
||||
*/
|
||||
class AjaxDriver
|
||||
class XHRDriver
|
||||
{
|
||||
constructor(oJua, oOptions)
|
||||
{
|
||||
|
|
@ -170,7 +170,6 @@
|
|||
|
||||
fStartFunction && fStartFunction(sUid);
|
||||
|
||||
oFormData.append('jua-post-type', 'ajax');
|
||||
oFormData.append(this.oOptions.name, oFileInfo['File']);
|
||||
Object.entries(aHidden).forEach(([key, value]) =>
|
||||
oFormData.append(key, (typeof value === "function" ? value(oFileInfo) : value).toString())
|
||||
|
|
@ -305,7 +304,7 @@
|
|||
|
||||
self.oQueue = new Queue(oOptions.queueSize);
|
||||
|
||||
self.oDriver = new AjaxDriver(self, oOptions);
|
||||
self.oDriver = new XHRDriver(self, oOptions);
|
||||
|
||||
let el = oOptions.clickElement;
|
||||
if (el) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue