Rename 'ajax' to 'json' because we don't use XML

We use json as response
This commit is contained in:
djmaze 2020-12-30 15:50:47 +01:00
parent 76cf24f426
commit 950579c7f5
18 changed files with 83 additions and 91 deletions

5
vendors/jua/jua.js vendored
View file

@ -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) {