]> git.immae.eu Git - perso/Denise/oms.git/blobdiff - static/requetes.js
possibilité de saisir la date au format texte + export données en txt
[perso/Denise/oms.git] / static / requetes.js
index b7e719abc713911494c624962df82ed33cd01c79..bf8d4844bfeaaf75ae618c62b211cc6505c66e45 100644 (file)
@@ -25,7 +25,7 @@ function appelle_image()
                
                        
                        var boutondl = document.getElementById("export_dl") ;
-                       boutondl.setAttribute('onclick',"download_file('donnees_"+nomenfant+".json', 'application/json;charset=utf-8','"+encodeURIComponent(texte) +"')")
+                       boutondl.setAttribute('onclick',"download_file('donnees_"+nomenfant+".txt', 'application/json;charset=utf-8','"+encodeURIComponent(texte) +"')")
                
 
                        if(result == "success")
@@ -103,3 +103,7 @@ function download_file(filename,mimetype,data) {
   document.body.removeChild(element);  
        
 }
+
+function upload_file(data) {
+       document.getElementById('form_import_donnees').submit();
+}