Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
minerva
core
Commits
c9591851
Commit
c9591851
authored
Sep 25, 2018
by
David Hoksza
Browse files
fix multiple identical uniprotids in molart menu
parent
1bdd52fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend-js/src/main/js/map/AbstractCustomMap.js
View file @
c9591851
...
...
@@ -265,7 +265,10 @@ function activateMolArtLink(coordinates, map) {
for
(
var
i
=
0
;
i
<
element
.
references
.
length
;
i
++
)
{
var
ref
=
element
.
references
[
i
];
if
(
ref
.
constructor
.
name
===
'
Annotation
'
&&
ref
.
getType
()
===
'
UNIPROT
'
)
{
uniprotIds
.
push
(
ref
.
getResource
());
var
uniprotId
=
ref
.
getResource
()
if
(
uniprotIds
.
indexOf
(
uniprotId
)
<
0
)
{
uniprotIds
.
push
(
ref
.
getResource
());
}
}
}
if
(
uniprotIds
.
length
>
0
)
map
.
getTopMap
().
getContextMenu
().
getMolArt
().
activateInContextMenu
(
uniprotIds
);
...
...
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