Commit fce21dae authored by Marc Duez's avatar Marc Duez

builder.js : add data with expected value to normalization menu

parent 3dedc740
......@@ -141,6 +141,32 @@ Builder.prototype = {
normalize_list.appendChild(div)
}
}
for (var key in self.m.data){
if (typeof self.m.data[key].expected != "undefined"){
var input = document.createElement("input")
input.value=key;
input.type = "radio"
input.name = "normalize_list"
if (self.m.normalization.id==i) input.checked=true;
var text = document.createTextNode(key + " => " +self.m.data[key].expected)
var div = document.createElement("div")
div.onclick = function () {
self.m.compute_data_normalization(this.firstChild.value)
this.firstChild.checked=true
self.m.update()
}
div.className="buttonSelector"
div.appendChild(input)
div.appendChild(text)
normalize_list.appendChild(div)
}
}
},
/*complete tagSelector html element with correct info about current tagname
......@@ -228,7 +254,6 @@ Builder.prototype = {
}else{
myConsole.popupMsg("expected input between 0.0001 and 1")
}
}
var div = document.createElement('div');
......
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