[x] Import de notes pour admin+enseignant (droits cumulés)
This commit is contained in:
parent
702b20aa8f
commit
bb6dc71723
|
@ -658,18 +658,25 @@ if( studentCase != null ){
|
|||
/*******************/
|
||||
/* IMPORT DE NOTES */
|
||||
/*******************/
|
||||
var importNotes = document.querySelector('#import_notes[data-ctrl]');
|
||||
var importNotes = document.querySelectorAll('#import_notes[data-ctrl]');
|
||||
|
||||
if( importNotes.length > 0 ){
|
||||
|
||||
for( var i = 0 ; i < importNotes.length ; i++ ){
|
||||
// on récupère l'input de fichier
|
||||
var fileInput = importNotes[i].children[0];
|
||||
|
||||
if( importNotes != null ){
|
||||
var fileInput = importNotes.children[0]
|
||||
|
||||
fileInput.addEventListener('change', function(e){
|
||||
|
||||
var boutonImport = e.target.parentNode;
|
||||
|
||||
// on récupère le contrôle en question
|
||||
var controle = importNotes.dataset.ctrl;
|
||||
var controle = boutonImport.dataset.ctrl;
|
||||
console.log('controle: '+controle);
|
||||
|
||||
// on récupère le fichier
|
||||
var file = importNotes.children[0].files[0];
|
||||
var file = boutonImport.children[0].files[0];
|
||||
|
||||
/* [1] IMPORTATION DU FICHIER
|
||||
=======================================*/
|
||||
|
@ -715,6 +722,8 @@ if( importNotes != null ){
|
|||
|
||||
}, false);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue