Commit eb64b379 authored by Nicolas's avatar Nicolas

ajouter des axes assigne la valeur de l'alternative aux sous-axes rajoutés

par la fonction "ajouter"
parent dfb223c7
......@@ -393,16 +393,23 @@ window.W = window.W || {};
var incr = sublines.length + 1;
var title = "Sous axe " + incr;
var title2 = "Sous axe " + (incr + 1);
var alts = '';
if(this.model.get("alternative_mode")){
alts = "V" + this.model.get('alternative_n') + "-" + this.model.get('alternative_p');
if(this.model.get("alternative_mode") == "exclusive"){
alts = "V"+this.model.get('alternative_p');
}
}
if (sublines.length == 0) {
sublines.add([{
title: title
title: title,
}, {
title: title2
title: title2,
}]);
} else {
sublines.add({
title: title
title: title,
alternative_symbole : alts
});
}
......
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