Skip to content
Snippets Groups Projects
Commit 1bc98c6e authored by Piotr Gawron's avatar Piotr Gawron
Browse files

after search is executed dialog should be closed and results should be centered

parent 4af38cd7
No related branches found
No related tags found
1 merge request!288Resolve "overview image link to search results doesn't work"
......@@ -197,8 +197,9 @@ OverviewDialog.prototype.openLink = function(link) {
self.showOverview(link.imageLinkId);
} else if (link.type === "OverviewSearchLink") {
logger.debug("Sending search query. Query: " + link.query);
return map.getOverlayByName("search").searchByQuery(link.query);
$(self.getElement()).dialog("close");
return map.getOverlayByName("search").searchByQuery(link.query, false, true).then(function(){
$(self.getElement()).dialog("close");
});
} else {
logger.warn("Unknown type of link: " + link.type + ". Don't know what to do... LinkId: " + link.idObject);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment