Commit 079721fa authored by HERBERT Ryan's avatar HERBERT Ryan Committed by Vidjil Team
Browse files

builder.js browser/index.html added function to put patient name in top container

parent b6e46bfd
......@@ -68,6 +68,9 @@
<!-- TOP-CONTAINER -->
<div id="top-container">
<div class="menu" id="top_filename">
<!--Div is filled programmatically -->
</div>
<div class="menu" id="db_menu" onmouseover="showSelector('dbSelector');" style="display : none">patients
<div id="dbSelector" class="selector"><div>
<div class="menu_box">
......
......@@ -34,6 +34,7 @@ Builder.prototype = {
self.toggle_left_container()
});
this.build_top_container()
this.build_info_container()
this.build_clusterSelector()
this.initTag();
......@@ -44,6 +45,7 @@ Builder.prototype = {
update: function () {
this.build_top_container()
this.build_info_container()
this.updateTagBox();
},
......@@ -234,6 +236,7 @@ Builder.prototype = {
a.id = "btnSave";
a.onclick = function () {
self.m.samples[data][self.m.t] = document.getElementById("edit_value").value
self.build_top_container()
self.build_info_container()
self.m.update()
self.m.analysisHasChanged = true
......@@ -536,6 +539,16 @@ Builder.prototype = {
this.initTag();
},
build_top_container: function () {
var parent = document.getElementById("top_filename");
parent.innerHTML = "";
var div_data_file = document.createElement('div');
//div_data_file.id = "info_data_file"
div_data_file.appendChild(document.createTextNode(this.m.getPrintableAnalysisName()));
document.title = this.m.getPrintableAnalysisName()
parent.appendChild(div_data_file)
},
build_multi_system: function () {
var div = document.createElement('div');
div.className = "info_line";
......
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