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