summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/outilspage.js19
-rw-r--r--static/requetes.js4
-rw-r--r--static/style.css6
3 files changed, 26 insertions, 3 deletions
diff --git a/static/outilspage.js b/static/outilspage.js
index 9491495..9b3f51d 100644
--- a/static/outilspage.js
+++ b/static/outilspage.js
@@ -141,3 +141,22 @@ function change_mode_dates(mode)
141 elem.innerHTML = "<span onclick=\"change_mode_dates('text')\" class=\"bouton\">Cliquez ici</span> pour saisir les dates comme du texte." 141 elem.innerHTML = "<span onclick=\"change_mode_dates('text')\" class=\"bouton\">Cliquez ici</span> pour saisir les dates comme du texte."
142 } 142 }
143} 143}
144
145function revele_enfants()
146{
147 // révèle tous les champs pour enfants additionnels
148 var listelt = document.getElementsByClassName("enfants_cache_def") ;
149 for(i=0; i<listelt.length; i++) {
150 listelt[i].style.display = "block" ;
151 }
152 // Enlève le bouton pour les afficher
153 var bouton = document.getElementById("reveleenfants") ;
154 bouton.style.display = "none" ;
155}
156
157function vide_champ(nom)
158{
159 // vide le champ d'id proposé
160 var elt = document.getElementById(nom) ;
161 elt.value = "" ;
162}
diff --git a/static/requetes.js b/static/requetes.js
index 22abc57..5644469 100644
--- a/static/requetes.js
+++ b/static/requetes.js
@@ -144,6 +144,6 @@ function download_file(filename,mimetype,data) {
144 144
145} 145}
146 146
147function upload_file(data) { 147function upload_file(nomformulaire) {
148 document.getElementById('form_import_donnees').submit(); 148 document.getElementById(nomformulaire).submit();
149} 149}
diff --git a/static/style.css b/static/style.css
index 929bfd4..b048f11 100644
--- a/static/style.css
+++ b/static/style.css
@@ -52,7 +52,7 @@ img#courbe {
52 display: none; 52 display: none;
53} 53}
54 54
55#pref_graphique, #extra { 55#pref_graphique, #extra, #multi{
56 display: none; 56 display: none;
57} 57}
58 58
@@ -60,6 +60,10 @@ img#courbe {
60 display: none; 60 display: none;
61} 61}
62 62
63.enfants_cache_def{
64 display: none;
65}
66
63.icon_button { 67.icon_button {
64 display: block; 68 display: block;
65 cursor: pointer; 69 cursor: pointer;