Commit 2ded09d6 authored by Marc Duez's avatar Marc Duez

segmenter.js : improve update strategy, rebuild sequence string only if needed

parent 38454a3e
......@@ -1223,7 +1223,7 @@ Model.prototype = {
} else {
if (list.length < 20) this.windows[cloneID].select = true;
}
this.updateElemStyle([cloneID]);
this.updateElem([cloneID]);
},
......
......@@ -194,7 +194,14 @@ Segment.prototype = {
},
updateElemStyle: function (list) {
this.updateElem(list)
for (var i = 0; i < list.length; i++) {
if (this.m.windows[list[i]].select) {
if (document.getElementById("seq" + list[i])) {
var spanF = document.getElementById("f" + list[i]);
this.div_elem(spanF, list[i]);
}
}
}
},
/* genere le code HTML des infos d'un clone
......
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