Gitlab is now using https://gitlab.lcsb.uni.lu as it's primary address. Please update your bookmarks. FAQ.

Commit 8db5c05a authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '1449-search-listener' into 'devel_15.1.x'

SearchListener was not triggered when clicking on highlighted elements

See merge request !1275
parents 9b022773 1ddb5ae0
Pipeline #38541 failed with stage
in 27 minutes and 17 seconds
......@@ -4,8 +4,10 @@ minerva (15.1.3) stable; urgency=medium
* Bug fix: AND/OR text was missing when drawing diagram as SBGN (#1428)
* Bug fix: annotators details changes were not saved in few consecutive
updates (#1446)
* Bug fix: SearchListener was not triggered when clicking on highlighted
elements (#1449)
-- Piotr Gawron <piotr.gawron@uni.lu> Mon, 8 Feb 2021 12:00:00 +0200
-- Piotr Gawron <piotr.gawron@uni.lu> Tue, 9 Feb 2021 09:00:00 +0200
minerva (15.1.2) stable; urgency=medium
* Bug fix: automatic annotations are sometimes missing after project upload
......
......@@ -194,6 +194,8 @@ MarkerSurfaceCollection.prototype.createSurfaceForDbOverlay = function (element,
*/
var onclickFunctions = [function () {
return self.getMap().getTopMap().callListeners("onBioEntityClick", element);
}, function () {
return self.getMap().getTopMap().getOverlayByName("search").searchByTarget(element);
}];
if (element.getType() === "ALIAS") {
return map.getModel().getAliasById(element.getId()).then(function (alias) {
......
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