forked from ScoDoc/ScoDoc
Assiduites : bugfix justif import fichier
This commit is contained in:
parent
22d4be7b14
commit
d3379298e2
@ -885,7 +885,7 @@ function createAssiduite(etat, etudid) {
|
||||
(data, status) => {
|
||||
//success
|
||||
if (data.success.length > 0) {
|
||||
let obj = data.success["0"].assiduite_id;
|
||||
let obj = data.success["0"].message.assiduite_id;
|
||||
}
|
||||
},
|
||||
(data, status) => {
|
||||
@ -910,7 +910,7 @@ function deleteAssiduite(assiduite_id) {
|
||||
(data, status) => {
|
||||
//success
|
||||
if (data.success.length > 0) {
|
||||
let obj = data.success["0"].assiduite_id;
|
||||
let obj = data.success["0"].message.assiduite_id;
|
||||
}
|
||||
},
|
||||
(data, status) => {
|
||||
|
@ -164,7 +164,7 @@
|
||||
dateType: 'json',
|
||||
contentType: false,
|
||||
processData: false,
|
||||
success: () => { },
|
||||
success: () => { console.log("done") },
|
||||
}
|
||||
)
|
||||
)
|
||||
@ -192,8 +192,8 @@
|
||||
errorAlert();
|
||||
}
|
||||
if (Object.keys(data.success).length > 0) {
|
||||
couverture = data.success[0].couverture
|
||||
justif_id = data.success[0].justif_id;
|
||||
couverture = data.success[0].message.couverture
|
||||
justif_id = data.success[0].message.justif_id;
|
||||
importFiles(justif_id);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user