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
2670a139
Commit
2670a139
authored
Apr 19, 2021
by
Piotr Gawron
Browse files
show list when clicking on element
parent
4b7bd7d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
frontend-js/src/main/js/map/CustomMap.js
View file @
2670a139
...
...
@@ -913,6 +913,7 @@ CustomMap.prototype.getOverlayDataForIdentifiedElement = function (identifiedEle
var
promises
=
[];
var
overlays
=
[];
var
allOverlays
=
this
.
getDbOverlays
();
console
.
log
(
allOverlays
);
for
(
var
i
=
0
;
i
<
allOverlays
.
length
;
i
++
)
{
var
overlay
=
allOverlays
[
i
];
if
(
overlay
.
allowGeneralSearch
()
||
overlay
.
allowSearchById
())
{
...
...
@@ -922,7 +923,7 @@ CustomMap.prototype.getOverlayDataForIdentifiedElement = function (identifiedEle
generalFlag
=
false
;
}
overlays
.
push
(
overlay
);
promises
.
push
(
overlay
.
getDetailDataByIdentifiedElement
(
identifiedElement
,
!
overlay
.
allowSearchById
()
promises
.
push
(
overlay
.
getDetailDataByIdentifiedElement
(
identifiedElement
,
overlay
.
allowSearchById
()
||
generalFlag
));
}
...
...
frontend-js/src/main/js/map/window/AbstractInfoWindow.js
View file @
2670a139
...
...
@@ -182,7 +182,7 @@ AbstractInfoWindow.prototype.createOverlayInfoDiv = function (overlay, data) {
return
null
;
}
}
else
if
(
overlay
.
name
===
"
chemical
"
)
{
if
(
this
.
alias
.
getType
().
toUpperCase
()
===
"
RNA
"
||
if
(
alias
.
getType
().
toUpperCase
()
===
"
RNA
"
||
alias
.
getType
().
toUpperCase
()
===
"
PROTEIN
"
||
alias
.
getType
().
toUpperCase
()
===
"
GENE
"
)
{
return
this
.
_createChemicalInfoDiv
(
overlay
,
data
);
...
...
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