Commit 4b3a30c9 authored by marc duez's avatar marc duez Committed by Mathieu Giraud
Browse files

aligner.js: update only clones with valid sequence

parent 27669338
......@@ -418,9 +418,11 @@ Aligner.prototype = {
if(list.indexOf(cloneID) != -1){
list.splice( list.indexOf(cloneID), 1 );
this.addToSegmenter(cloneID);
liDom.display("main", "block");
liDom.replace("seq-fixed", this.build_spanF(cloneID));
liDom.content("seq-mobil", this.sequence[cloneID].toString());
if (liDom != null) {
liDom.display("main", "block");
liDom.replace("seq-fixed", this.build_spanF(cloneID));
liDom.content("seq-mobil", this.sequence[cloneID].toString());
}
}
}
......@@ -431,9 +433,11 @@ Aligner.prototype = {
if (this.m.clone(cloneID).isSelected()) {
this.addToSegmenter(cloneID);
liDom.display("main", "block");
liDom.replace("seq-fixed", this.build_spanF(cloneID));
liDom.content("seq-mobil", this.sequence[cloneID].toString());
if (liDom != null) {
liDom.display("main", "block");
liDom.replace("seq-fixed", this.build_spanF(cloneID));
liDom.content("seq-mobil", this.sequence[cloneID].toString());
}
}
}
......
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