Commit 86fcd2ac authored by aurelien beliard's avatar aurelien beliard Committed by Mathieu Giraud

modifiy icon when the normalization is set

parent 074abd93
......@@ -1277,7 +1277,9 @@ Clone.prototype = {
span_star.onclick = function (e) {
self.m.openTagSelector(self.index, e);
}
span_star.id = self.index
span_star.appendChild(icon('icon-star-2', 'clone tag'))
span_star.setAttribute('id', 'color' + this.index);
if (typeof this.tag != 'undefined')
span_star.style.color = this.m.tag[this.getTag()].color
......
......@@ -978,10 +978,12 @@ changeAlleleNotation: function(alleleNotation) {
this.clone(n).updateColor()
}
if(this.norm){
$("#"+this.normalization.id+" i.icon-star-2").toggleClass('icon-star-2 icon-lock-1')
$("i.icon-lock-1").toggleClass('icon-lock-1 icon-star-2')
$("#"+this.normalization.id+" i.icon-star-2").toggleClass('icon-star-2 icon-lock-1')
$("#f"+this.normalization.id+" i.icon-star-2").toggleClass('icon-star-2 icon-lock-1')
}else{
$("i.icon-lock-1").toggleClass('icon-lock-1 icon-star-2')
$("i.icon-lock-1").toggleClass('icon-lock-1 icon-star-2')
// $("#f"+this.normalization.id+" i.icon-star-2").toggleClass('icon-lock-1 icon-star-2')
}
},
......
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