Commit 6e4ee40a authored by Marc Duez's avatar Marc Duez
Browse files

model.js : save/load date in analysis file

parent 747065ac
......@@ -183,6 +183,9 @@ Model.prototype = {
if (self.analysis.normalization) {
self.normalization= self.analysis.normalization;
}
if (self.analysis.timestamp2) {
self.timestamp2= self.analysis.timestamp2;
}
self.analysisFileName = url_split[url_split.length-1]
self.initClones();
},
......@@ -502,6 +505,9 @@ Model.prototype = {
if (self.analysis.normalization) {
self.normalization= self.analysis.normalization;
}
if (self.analysis.timestamp2) {
self.timestamp2= self.analysis.timestamp2;
}
self.initClones();
}
} else {
......@@ -700,6 +706,7 @@ Model.prototype = {
analysisData.time = this.time
analysisData.time_order = this.time_order
analysisData.normalization = this.normalization
analysisData.timestamp2 = this.timestamp2
var textToWrite = JSON.stringify(analysisData, undefined, 2);
var textFileAsBlob = new Blob([textToWrite], {
......
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