Skip to content

Commit

Permalink
show tooltip only when requested on in full screen
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-brancotte committed May 6, 2021
1 parent 19b3ff3 commit e2af173
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/tree-edam-stand-alone.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,10 @@ function interactive_edam_browser(){
}

function tooltipBuilder(d, tooltipContainer){
tooltipContainer.node().innerHTML = '';
if ($("#tree-and-controls:not(:fullscreen)").length
&& $("input[name='show-tooltip-only-full-screen']:checked").length)
return;
var uri=__my_interactive_tree.identifierAccessor()(d);
var branch_of_term = get_branch_of_term(uri);
var identifier=uri.substring(uri.lastIndexOf('/')+1)
Expand Down

0 comments on commit e2af173

Please sign in to comment.