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
86fcd2ac
Commit
86fcd2ac
authored
Sep 21, 2017
by
aurelien beliard
Committed by
Mathieu Giraud
Nov 28, 2017
Browse files
modifiy icon when the normalization is set
parent
074abd93
Changes
2
Show whitespace changes
Inline
Side-by-side
browser/js/clone.js
View file @
86fcd2ac
...
...
@@ -1277,7 +1277,9 @@ Clone.prototype = {
span_star
.
onclick
=
function
(
e
)
{
self
.
m
.
openTagSelector
(
self
.
index
,
e
);
}
span_star
.
id
=
self
.
index
span_star
.
appendChild
(
icon
(
'
icon-star-2
'
,
'
clone tag
'
))
span_star
.
setAttribute
(
'
id
'
,
'
color
'
+
this
.
index
);
if
(
typeof
this
.
tag
!=
'
undefined
'
)
span_star
.
style
.
color
=
this
.
m
.
tag
[
this
.
getTag
()].
color
...
...
browser/js/model.js
View file @
86fcd2ac
...
...
@@ -978,10 +978,12 @@ changeAlleleNotation: function(alleleNotation) {
this
.
clone
(
n
).
updateColor
()
}
if
(
this
.
norm
){
$
(
"
i.icon-lock-1
"
).
toggleClass
(
'
icon-lock-1 icon-star-2
'
)
$
(
"
#
"
+
this
.
normalization
.
id
+
"
i.icon-star-2
"
).
toggleClass
(
'
icon-star-2 icon-lock-1
'
)
$
(
"
#f
"
+
this
.
normalization
.
id
+
"
i.icon-star-2
"
).
toggleClass
(
'
icon-star-2 icon-lock-1
'
)
}
else
{
$
(
"
i.icon-lock-1
"
).
toggleClass
(
'
icon-lock-1 icon-star-2
'
)
// $("#f"+this.normalization.id+" i.icon-star-2").toggleClass('icon-lock-1 icon-star-2')
}
},
...
...
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