Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
0ee9b117
Commit
0ee9b117
authored
Sep 22, 2014
by
Marc Duez
Browse files
model.js: debug import analysis (it was impossible to remove analysis file from input)
parent
d5af7194
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/model.js
View file @
0ee9b117
...
...
@@ -441,7 +441,7 @@ Model.prototype = {
}
self
.
initClones
();
}
else
{
myConsole
.
flash
(
"
invalid json version for analysis file
"
)
myConsole
.
flash
(
"
invalid json version for analysis file
"
,
1
)
}
},
...
...
@@ -509,15 +509,16 @@ Model.prototype = {
* */
loadAnalysis
:
function
(
analysis
)
{
var
self
=
this
var
input
=
document
.
getElementById
(
analysis
)
myConsole
.
log
(
"
loadAnalysis()
"
);
if
(
document
.
getElementById
(
analysis
)
.
files
.
length
!=
0
)
{
if
(
input
.
files
.
length
!=
0
)
{
var
oFReader
=
new
FileReader
();
var
oFile
=
document
.
getElementById
(
analysis
)
var
oFile
=
input
.
files
[
0
];
self
.
analysisFileName
=
document
.
getElementById
(
analysis
)
self
.
analysisFileName
=
input
.
files
[
0
].
name
;
oFReader
.
readAsText
(
oFile
);
...
...
@@ -531,7 +532,10 @@ Model.prototype = {
}
if
(
typeof
(
this
.
tabRandomColor
)
==
"
undefined
"
)
this
.
loadRandomTab
();
input
=
$
(
"
#
"
+
analysis
)
input
.
replaceWith
(
input
.
val
(
''
).
clone
(
true
));
return
this
;
},
//end loadAnalysis
...
...
@@ -817,8 +821,8 @@ Model.prototype = {
}
this
.
clones
[
l
].
cluster
=
new_cluster
;
}
this
.
init
()
}
this
.
init
()
},
/*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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