Commit 3e871bdb authored by Armand Bour's avatar Armand Bour Committed by Mathieu Giraud
Browse files

Implement sequence replacing

parent b1c38b36
...@@ -42,6 +42,7 @@ function Clone(data, model, index, virtual) { ...@@ -42,6 +42,7 @@ function Clone(data, model, index, virtual) {
this[key[i]]=data[key[i]] this[key[i]]=data[key[i]]
} }
// Default value just in case
if (this.quantifiable == undefined) { if (this.quantifiable == undefined) {
this.quantifiable = true; this.quantifiable = true;
} }
......
...@@ -2332,12 +2332,13 @@ changeCloneNotation: function(cloneNotationType) { ...@@ -2332,12 +2332,13 @@ changeCloneNotation: function(cloneNotationType) {
data: { data: {
sequences: sequences sequences: sequences
}, },
// dataType: "json",
success: function (data) { success: function (data) {
data.clones.forEach(function (clone) { data.clones.forEach(function (clone) {
clone.quantifiable = false; clone.quantifiable = false;
}); });
self.parseJsonData(data, 100); self.parseJsonData(data, 100);
self.loadGermline();
self.initClones();
console.log({ msg: "Clone(s) added!", type: "flash", priority: 1 }) console.log({ msg: "Clone(s) added!", type: "flash", priority: 1 })
}, },
error: function (xhr, textStatus, errorThrown) { error: function (xhr, textStatus, errorThrown) {
......
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