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());
//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