Commit 247e4dde authored by Marc Duez's avatar Marc Duez
Browse files

segmenter.js : display only available checkbox for highlight

parent c6c63a98
......@@ -170,6 +170,17 @@ Segment.prototype = {
div_highlight.appendChild(input)
}
*/
if (fields.indexOf("cdr3") != -1) {
var aaCheckbox = document.createElement('input');
aaCheckbox.type = "checkbox";
aaCheckbox.onclick = function () {
segment.amino = this.checked;
segment.update();
}
div_highlight.appendChild(aaCheckbox)
div_highlight.appendChild(document.createTextNode("AA"));
var cdr3Checkbox = document.createElement('input');
cdr3Checkbox.type = "checkbox";
......@@ -185,6 +196,8 @@ Segment.prototype = {
div_highlight.appendChild(cdr3Checkbox)
div_highlight.appendChild(document.createTextNode("cdr3"));
}
var windowCheckbox = document.createElement('input');
windowCheckbox.type = "checkbox";
windowCheckbox.onclick = function () {
......@@ -199,15 +212,6 @@ Segment.prototype = {
div_highlight.appendChild(windowCheckbox)
div_highlight.appendChild(document.createTextNode("vidjil_w"));
var aaCheckbox = document.createElement('input');
aaCheckbox.type = "checkbox";
aaCheckbox.onclick = function () {
segment.amino = this.checked;
segment.update();
}
div_highlight.appendChild(aaCheckbox)
div_highlight.appendChild(document.createTextNode("AA"));
div.appendChild(div_highlight)
......
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