diff options
author | Denise sur Lya <sekhmet@lya> | 2021-02-26 09:21:40 +0100 |
---|---|---|
committer | Denise sur Lya <sekhmet@lya> | 2021-02-26 09:21:40 +0100 |
commit | 2fce97eab52d0379e1bc5ea399f24bf913c5d6ac (patch) | |
tree | 132941f9eef8b27a02d93d9ea741ac253d6797d1 /static | |
parent | 406dc2734a887ea04627b7dd3a7433abed0760ef (diff) | |
download | oms-2fce97eab52d0379e1bc5ea399f24bf913c5d6ac.tar.gz oms-2fce97eab52d0379e1bc5ea399f24bf913c5d6ac.tar.zst oms-2fce97eab52d0379e1bc5ea399f24bf913c5d6ac.zip |
effacement des "anciennes" extrapolations
Diffstat (limited to 'static')
-rw-r--r-- | static/requetes.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/static/requetes.js b/static/requetes.js index 6228020..22abc57 100644 --- a/static/requetes.js +++ b/static/requetes.js | |||
@@ -10,7 +10,8 @@ function appelle_image() | |||
10 | { | 10 | { |
11 | if (this.readyState == 4 && this.status == 200) { | 11 | if (this.readyState == 4 && this.status == 200) { |
12 | // On nettoie | 12 | // On nettoie |
13 | nettoie_erreurs() | 13 | nettoie_erreurs() ; |
14 | nettoie_calculs() ; | ||
14 | 15 | ||
15 | // on récupère les différents champs de la réponse | 16 | // on récupère les différents champs de la réponse |
16 | var result = this.response.result ; | 17 | var result = this.response.result ; |
@@ -119,6 +120,15 @@ function nettoie_erreurs() | |||
119 | 120 | ||
120 | } | 121 | } |
121 | 122 | ||
123 | function nettoie_calculs() | ||
124 | { | ||
125 | // Vider les calculs éventuels | ||
126 | var elem_extr = document.getElementById("section_extradonnees") | ||
127 | elem_extr.style.display = "none" ; | ||
128 | var ul = document.getElementById("extradata") ; | ||
129 | ul.innerHTML = "" ; | ||
130 | } | ||
131 | |||
122 | 132 | ||
123 | function download_file(filename,mimetype,data) { | 133 | function download_file(filename,mimetype,data) { |
124 | var element = document.createElement('a'); | 134 | var element = document.createElement('a'); |