Commit 17674646 authored by flothoni's avatar flothoni Committed by Mathieu Giraud

model.js; update the description of tag span in function of number of selected clones

link to #1292
parent dc03831f
......@@ -2035,10 +2035,12 @@ changeAlleleNotation: function(alleleNotation) {
this.tagSelectorList.appendChild(li);
var string = "Tag for : <br/>"
for (var cloneID in clonesIDs){
string += "* "+ this.clone(cloneID).getName() + " (" + cloneID + ")<br/>";
var string;
if (clonesIDs.length > 1){
string = `Tag for ${clonesIDs.length} clones`
} else {
if (clonesIDs[0][0] == "s") cloneID = clonesIDs[0].substr(3);
string = "Tag for "+this.clone(clonesIDs[0]).getName()
}
this.tagSelectorInfo.innerHTML = string
$(this.tagSelector).show();
......
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