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
c50cccde
Commit
c50cccde
authored
Aug 10, 2016
by
florian.thonier
Committed by
Mathieu Giraud
Sep 22, 2016
Browse files
clone.js : add the compatibility with textual and numerical external fields.
numerical field by 'val' key textual field by 'info' key.
parent
ef4441ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/clone.js
View file @
c50cccde
...
...
@@ -953,10 +953,19 @@ Clone.prototype = {
var
exclude_seg_info
=
[
'
affectSigns
'
,
'
affectValues
'
,
'
5
'
,
'
4
'
,
'
3
'
]
for
(
var
key
in
this
.
seg
)
{
if
(
exclude_seg_info
.
indexOf
(
key
)
==
-
1
&&
this
.
seg
[
key
]
instanceof
Object
)
{
var
nt_seq
=
this
.
getSegNtSequence
(
key
);
if
(
nt_seq
!=
''
)
{
html
+=
"
<tr><td>
"
+
key
+
"
</td><td colspan='
"
+
time_length
+
"
'>
"
+
this
.
getSegNtSequence
(
key
)
+
"
</td></tr>
"
}
if
(
"
info
"
in
this
.
seg
[
key
])
{
// Textual field
html
+=
"
<tr><td>
"
+
key
+
"
</td><td colspan='
"
+
time_length
+
"
'>
"
+
this
.
seg
[
key
][
"
info
"
]
+
"
</td></tr>
"
}
else
if
(
"
val
"
in
this
.
seg
[
key
])
{
// Numerical field
html
+=
"
<tr><td>
"
+
key
+
"
</td><td colspan='
"
+
time_length
+
"
'>
"
+
this
.
seg
[
key
][
"
val
"
]
+
"
</td></tr>
"
}
else
{
// Sequence field
var
nt_seq
=
this
.
getSegNtSequence
(
key
);
if
(
nt_seq
!=
''
)
{
html
+=
"
<tr><td>
"
+
key
+
"
</td><td colspan='
"
+
time_length
+
"
'>
"
+
this
.
getSegNtSequence
(
key
)
+
"
</td></tr>
"
}
}
}
}
if
(
typeof
this
.
seg
[
'
junction
'
]
!=
'
undefined
'
...
...
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