Skip to content

Commit

Permalink
Show child term definition on mouse-over
Browse files Browse the repository at this point in the history
Refs #2796
  • Loading branch information
kimrutherford committed Mar 1, 2024
1 parent b9d6fd7 commit dcd7803
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Canto/Track/OntologyLookup.pm
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ sub _make_term_hash
if (!$seen{$child_cvterm->cvterm_id()}) {
push @child_hashes,
{$self->_make_term_hash($child_cvterm,
$child_cvterm->cv()->name(), 0, 0, 0, undef)};
$child_cvterm->cv()->name(), 1, 0, 0, undef)};
$seen{$child_cvterm->cvterm_id()} = 1;
}
}
Expand Down
3 changes: 2 additions & 1 deletion root/static/ng_templates/term_children.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
<div class="curs-box-body">
<ul>
<li ng-repeat="child in termDetails.children">
<a href="#" ng-click="gotoChild(child.id)">{{child.name}}
<a href="#" ng-click="gotoChild(child.id)"
title="{{child.definition}}">{{child.name}}
<img ng-src="{{CantoGlobals.application_root}}/static/images/right_arrow.png"></img>
</a>
</li>
Expand Down

0 comments on commit dcd7803

Please sign in to comment.