Import MCC opérationnel et déployé

This commit is contained in:
xdrm-brackets 2015-11-22 11:14:57 +01:00
parent 5e0b63e0b7
commit 15dd58cc53
1 changed files with 5 additions and 4 deletions

View File

@ -103,7 +103,7 @@ creerSemestre.addEventListener('click', function(e){
var importMcc = document.getElementById('import_mcc'); var importMcc = document.getElementById('import_mcc');
importMcc.addEventListener('change', function(e){ importMcc.addEventListener('change', function(e){
addClass( importMcc, 'loading' ); addClass( importMcc.parentNode, 'loading' );
var file = importMcc.files[0]; var file = importMcc.files[0];
@ -136,13 +136,14 @@ importMcc.addEventListener('change', function(e){
/* [3] INTÉGRATION À LA BDD /* [3] INTÉGRATION À LA BDD
=======================================*/ =======================================*/
requestIntegration = { requestIntegration = {
level_0: 'career', level_0 : 'career',
level_1: 'setMCC', level_1 : 'setMCC',
semestre: 1, semestre: 1,
mcc: e.mcc mcc : e.mcc
} }
API.send( requestIntegration, function(f){ API.send( requestIntegration, function(f){
console.log( f );
if( f.request == 'success' ){ if( f.request == 'success' ){
console.log('mcc intégré'); console.log('mcc intégré');
reload(); reload();