Import MCC opérationnel et déployé
This commit is contained in:
parent
5e0b63e0b7
commit
15dd58cc53
|
@ -103,7 +103,7 @@ creerSemestre.addEventListener('click', function(e){
|
|||
var importMcc = document.getElementById('import_mcc');
|
||||
importMcc.addEventListener('change', function(e){
|
||||
|
||||
addClass( importMcc, 'loading' );
|
||||
addClass( importMcc.parentNode, 'loading' );
|
||||
|
||||
var file = importMcc.files[0];
|
||||
|
||||
|
@ -136,13 +136,14 @@ importMcc.addEventListener('change', function(e){
|
|||
/* [3] INTÉGRATION À LA BDD
|
||||
=======================================*/
|
||||
requestIntegration = {
|
||||
level_0: 'career',
|
||||
level_1: 'setMCC',
|
||||
level_0 : 'career',
|
||||
level_1 : 'setMCC',
|
||||
semestre: 1,
|
||||
mcc: e.mcc
|
||||
mcc : e.mcc
|
||||
}
|
||||
|
||||
API.send( requestIntegration, function(f){
|
||||
console.log( f );
|
||||
if( f.request == 'success' ){
|
||||
console.log('mcc intégré');
|
||||
reload();
|
||||
|
|
Loading…
Reference in New Issue