Skip to content

Commit

Permalink
configurable content of the tooltip, WIP #167
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-brancotte committed May 6, 2021
1 parent e2af173 commit 6939fb5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions js/tree-edam-stand-alone.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,15 @@ function interactive_edam_browser(){
.toLowerCase()
.replace(/[-]+/g,'-');
var details = build_detail_panel(d, uri, branch_of_term, identifier, false);
fill_detail_panel(d, uri, branch_of_term, identifier, details);
tooltipContainer.node().innerHTML = '';
if ($("input[name='show-detail']:checked").length)
fill_detail_panel(d, uri, branch_of_term, identifier, details);
else
details.find("tbody.details").parent().remove();
if ($("input[name='show-community-usage']:checked").length)
fill_community_panel(d, uri, branch_of_term, identifier, details);
else
details.find("tbody.community").parent().remove();
details.find(".panel-body:empty").remove();
$(tooltipContainer.node()).append(details);
}

Expand Down

0 comments on commit 6939fb5

Please sign in to comment.