diff options
author | Denise sur Lya <sekhmet@lya> | 2021-06-29 23:04:02 +0200 |
---|---|---|
committer | Denise sur Lya <sekhmet@lya> | 2021-06-29 23:04:02 +0200 |
commit | ca61f310d80e05ea43efc148787f214a567743f0 (patch) | |
tree | 0f8bda76932d6ed30bf274cd441fb070a684e868 /static | |
parent | 639d9cecc866004800974bf4d6ffc1c1a3a59fc1 (diff) | |
download | oms-ca61f310d80e05ea43efc148787f214a567743f0.tar.gz oms-ca61f310d80e05ea43efc148787f214a567743f0.tar.zst oms-ca61f310d80e05ea43efc148787f214a567743f0.zip |
nouveauté : courbes multiples
Diffstat (limited to 'static')
-rw-r--r-- | static/outilspage.js | 19 | ||||
-rw-r--r-- | static/requetes.js | 4 | ||||
-rw-r--r-- | static/style.css | 6 |
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 | |||
145 | function 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 | |||
157 | function 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 | ||
147 | function upload_file(data) { | 147 | function 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; |