Commit 2670a139 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

show list when clicking on element

parent 4b7bd7d5
......@@ -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));
}
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment