Commit 0525b611 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

javascript listener on html elements in left panel info dialog are working now

parent 2b66e7fb
......@@ -185,7 +185,8 @@ LeftPanel.prototype.showElementDetails = function(element) {
if (element !== undefined && (openTabName.indexOf("SEARCH") === -1 || searchTabName !== "GENERIC")) {
var model = self.getMap().getSubmapById(element.getModelId()).getModel();
return model.getByIdentifiedElement(element, true).then(function(bioEntity) {
div.innerHTML = self.prepareElementDetailsContent(bioEntity).innerHTML;
div.innerHTML ="";
div.appendChild(self.prepareElementDetailsContent(bioEntity));
$(div).dialog("open");
$(div).dialog("option", "title", self.getElementTitle(bioEntity));
$(div).scrollTop(0);
......
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