Commit f7cac1de authored by Mathieu Giraud's avatar Mathieu Giraud

Merge branch 'feature-c/3975-quick-updateelemstyle' into 'dev'

Quicker update

Closes #3975

See merge request !513
parents e9ac4993 3c27d1c3
Pipeline #92646 failed with stages
in 17 minutes and 40 seconds
......@@ -472,10 +472,6 @@ List.prototype = {
span_name.innerHTML = clone.getShortName();
span_name.title = clone.getNameAndCode();
span_name.style.color = clone.getColor();
//update star color
var span_star = div_elem.getElementsByClassName("starBox")[0];
span_star.style.color = this.m.tag[clone.getTag()].color
//update clone axis
var span_axis = div_elem.getElementsByClassName("axisBox")[0];
......
......@@ -1204,8 +1204,11 @@ changeAlleleNotation: function(alleleNotation) {
* @param {integer[]} - list - array of clone index
* */
updateElemStyle: function (list) {
this.updateModel();
for (var i = 0; i < this.view.length; i++) {
for (var i = 0; i < list.length; i++) {
this.clone(list[i]).updateColor();
this.clone(list[i]).updateCloneTagIcon();
}
for (i = 0; i < this.view.length; i++) {
this.view[i].updateElemStyle(list);
}
},
......
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