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
3e871bdb
Commit
3e871bdb
authored
Feb 15, 2017
by
Armand Bour
Committed by
Mathieu Giraud
Mar 01, 2017
Browse files
Implement sequence replacing
parent
b1c38b36
Changes
2
Hide whitespace changes
Inline
Side-by-side
browser/js/clone.js
View file @
3e871bdb
...
@@ -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
;
}
}
...
...
browser/js/model.js
View file @
3e871bdb
...
@@ -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
)
{
...
...
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