mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Almost all JSON properties to JavaScript camelCase
This commit is contained in:
parent
7a53cae32f
commit
f080a302b1
50 changed files with 501 additions and 562 deletions
20
vendors/jua/jua.js
vendored
20
vendors/jua/jua.js
vendored
|
|
@ -44,11 +44,9 @@
|
|||
{
|
||||
return oFile.size
|
||||
? {
|
||||
FileName: (oFile.name || '').replace(/^.*\/([^/]*)$/, '$1'),
|
||||
Size: oFile.size,
|
||||
Type: oFile.type,
|
||||
Folder: '',
|
||||
File : oFile
|
||||
fileName: (oFile.name || '').replace(/^.*\/([^/]*)$/, '$1'),
|
||||
size: oFile.size,
|
||||
file: oFile
|
||||
}
|
||||
: null; // Folder
|
||||
},
|
||||
|
|
@ -233,7 +231,7 @@
|
|||
*/
|
||||
uploadTask(sUid, oFileInfo)
|
||||
{
|
||||
if (false === this.oUids[sUid] || !oFileInfo || !oFileInfo['File'])
|
||||
if (false === this.oUids[sUid] || !oFileInfo || !oFileInfo.file)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
@ -285,7 +283,7 @@
|
|||
|
||||
fStartFunction && fStartFunction(sUid);
|
||||
|
||||
oFormData.append(this.options.name, oFileInfo['File']);
|
||||
oFormData.append(this.options.name, oFileInfo.file);
|
||||
|
||||
oXhr.send(oFormData);
|
||||
|
||||
|
|
@ -329,11 +327,9 @@
|
|||
getDataFromFiles(oInput.files, fFileCallback, limit);
|
||||
} else {
|
||||
fFileCallback({
|
||||
FileName: oInput.value.split(/\\\//).pop(),
|
||||
Size: null,
|
||||
Type: null,
|
||||
Folder: '',
|
||||
File : null
|
||||
fileName: oInput.value.split(/\\\//).pop(),
|
||||
size: null,
|
||||
file : null
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue