Commit e99a796d authored by Thonier Florian's avatar Thonier Florian Committed by Mathieu Giraud

browser/index.html: add some id for testing purposes

Allow to select specific DOM element
Link to #3902, #3945
parent 43db9f0d
......@@ -163,7 +163,7 @@
</div>
<div class="menu" id="color_menu" onmouseover="showSelector('colorSelector');" > color by
<div class="div-menu-selector"><select class="menu-selector" onchange="m.changeColorMethod(this.value)">
<div class="div-menu-selector"><select id="color_menu_select" class="menu-selector" onchange="m.changeColorMethod(this.value)">
<option value="Tag">tag</option>
<option value="clone">clone</option>
<option value="cdr3">CDR3</option>
......
......@@ -333,7 +333,10 @@ Builder.prototype = {
var li = document.createElement('li');
li.appendChild(div)
listTag.appendChild(li);
var listTag = document.getElementById("tagList")
if (listTag != null){
listTag.appendChild(li);
}
},
buildSystemSelector: function (system){
......@@ -357,8 +360,9 @@ Builder.prototype = {
// listGermline.appendChild(li);
},
/*complete displaySelector menu with correct info about current tagname / top
* */
/**
* complete displaySelector menu with correct info about current tagname / top
**/
build_displaySelector: function () {
var self = this;
......@@ -367,7 +371,9 @@ Builder.prototype = {
// var listGermline = document.getElementById("germline_list")
//reset
listTag.removeAllChildren();
if (listTag != null){
listTag.removeAllChildren();
}
// listGermline.removeAllChildren();
//init tag list
......
......@@ -333,6 +333,7 @@ Segment.prototype = {
var focus_selected = document.createElement('a');
focus_selected.appendChild(document.createTextNode("(focus)"))
focus_selected.className = "focus_selected"
focus_selected.id = "focus_selected"
focus_selected.onclick = function () { self.m.focusSelected() }
div_stats.appendChild(focus_selected)
......@@ -341,6 +342,7 @@ Segment.prototype = {
var hide_selected = document.createElement('a');
hide_selected.appendChild(document.createTextNode("(hide)"))
hide_selected.className = "focus_selected"
hide_selected.id = "hide_selected"
hide_selected.onclick = function () { self.m.hideSelected() }
div_stats.appendChild(hide_selected)
......
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