Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
6e4ee40a
Commit
6e4ee40a
authored
May 19, 2014
by
Marc Duez
Browse files
model.js : save/load date in analysis file
parent
747065ac
Changes
1
Show whitespace changes
Inline
Side-by-side
browser/js/model.js
View file @
6e4ee40a
...
...
@@ -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
],
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment