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
......@@ -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);
}
......
Supports Markdown
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