Commit 25bb43b0 authored by Marc Duez's avatar Marc Duez
Browse files

clone.js : clones keep their colors

parent 9afd8993
......@@ -263,10 +263,9 @@ Clone.prototype = {
updateColor: function () {
if (this.m.focus == this.hash){
this.color = color['@select'];
}else if (!this.active) {
this.color = color['@default'];
}else if (this.m.colorMethod == "abundance") {
var size = this.getSize()
if (this.m.clusters[this.hash].length==0){ size = this.getSequenceSize() }
if (size == 0){
this.color = color['@default'];
}else{
......
......@@ -374,9 +374,11 @@ List.prototype = {
for (var i = 0; i < this.m.clusters[cloneID].length; i++) {
(function (i) {
var id = this.m.clusters[cloneID][i]
var color = this.m.clone(id).getColor();
var div_clone = document.createElement('div');
div_clone.id = "_" + id;
div_clone.id2 = id;
div_clone.style.color = color;
div_clone.className = "listElem";
div_clone.onmouseover = function () {
self.m.focusIn(id);
......@@ -524,9 +526,13 @@ List.prototype = {
//color
var color = this.m.clone(list[i]).getColor();
$("#" + list[i] + " .nameBox")
$("#" + list[i] + " .nameBox:first")
.css("color", color)
$("#" + list[i] + " .sizeBox")
$("#" + list[i] + " .sizeBox:first")
.css("color", color)
$("#_" + list[i] + " .nameBox:first")
.css("color", color)
$("#_" + list[i] + " .sizeBox:first")
.css("color", color)
//clone 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