Commit e759a1e0 authored by Mathieu Giraud's avatar Mathieu Giraud

model.js, index.html: update menu with changeNotation()

Now the menu is consistent with the real value, for example when switching from one patient to another one
parent afb5f038
......@@ -225,8 +225,8 @@
<div class="menu_box">
size display</br>
<div class="buttonSelector" onclick="m.changeNotation('scientific')"><input type="radio" name="notation" value="scientific" >scientific notation</input></div>
<div class="buttonSelector" onclick="m.changeNotation('percent')"><input type="radio" name="notation" value="percent" checked>percent</input></div>
<div class="buttonSelector" onclick="m.changeNotation('scientific', true)"><input type="radio" name="notation" value="scientific" >scientific notation</input></div>
<div class="buttonSelector" onclick="m.changeNotation('percent', true)"><input type="radio" name="notation" value="percent" checked>percent</input></div>
<div class="menu_box">
......@@ -59,8 +59,8 @@ Model.prototype = {
this.system_selected = []
this.colorMethod = "Tag";
this.notation_type = "percent"
this.changeNotation("percent", false)
this.changeTimeFormat("name", false)
this.display_window = false
this.isPlaying = false;
......@@ -1582,10 +1582,10 @@ Model.prototype = {
/* use scientific notation / percent
* */
changeNotation: function (notation) {
changeNotation: function (notation, update) {
this.notation_type = notation
if (update) this.update()
var radio = document.getElementsByName("notation");
for(var elem in radio){
if(radio[elem].value == notation) radio[elem].checked=true;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment