Commit bcc98f8d authored by Mikaël Salson's avatar Mikaël Salson Committed by Mathieu Giraud
Browse files

crossDomain.js: Append results to display.

When several calls are made to IMGT, we must append the results to imgt2display
otherwise they would be overwritten.
parent 3c9bd398
......@@ -209,10 +209,13 @@ function imgtPostForSegmenter(data, system, override_imgt_options) {
logmsg += cloneIdx + ",";
//remove unneeded info coz relative to # of selected items
delete imgtArray[i]["Sequence number"];
if (typeof m.clones[cloneIdx].seg.imgt == 'undefined')
if (typeof m.clones[cloneIdx].seg.imgt == 'undefined') {
m.clones[cloneIdx].seg.imgt = {}
m.clones[cloneIdx].seg.imgt2display = {}
}
append_to_object(imgtArray[i], m.clones[cloneIdx].seg.imgt);
m.clones[cloneIdx].seg.imgt2display = computeStartStop(imgtArray[i],m.clones[cloneIdx].getSequence());
append_to_object(computeStartStop(imgtArray[i],m.clones[cloneIdx].getSequence()),
m.clones[cloneIdx].seg.imgt2display);
//toggle save in analysis file
m.clones[cloneIdx].segEdited = true;
}
......
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