Attention une mise à jour du serveur va être effectuée le vendredi 16 avril entre 12h et 12h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit 46c1f1c6 authored by Ryan Herbert's avatar Ryan Herbert Committed by Mathieu Giraud

model.js remove toggle from select()

The select method would toggle a clone that was already selected, which
is not always desirable.
parent e775dbec
......@@ -800,6 +800,22 @@ changeAlleleNotation: function(alleleNotation) {
return 0;
}
if (!this.clone(cloneID).isSelected()) {
this.clone(cloneID).select = true;
this.orderedSelectedClones.push(cloneID);
this.updateElemStyle([cloneID]);
}
},
toggleSelect: function(cloneID) {
console.log("toggle() (clone " + cloneID + ")");
// others shouldn't be selectable
if (this.clones[cloneID].isVirtual()) {
return 0;
}
if (this.clone(cloneID).isSelected()) {
this.clone(cloneID).select = false;
this.removeFromOrderedSelectedClones(cloneID);
......
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