Skip to content

Commit

Permalink
- added popover image fetching to view mode of species autocomplete w…
Browse files Browse the repository at this point in the history
…idget
  • Loading branch information
temi committed Jan 21, 2025
1 parent c5b8ada commit d4b5d26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class ViewModelWidgetRenderer implements ModelWidgetRenderer {
private void renderReadOnlySpecies(WidgetRenderContext context) {
context.databindAttrs.add 'with', context.source
context.writer << """<span data-bind='${context.databindAttrs.toString()}'><span${context.attributes.toString()} data-bind='text:name'></span>
<a href="#" data-bind="popover: {title: name, content: transients.speciesInformation}"><i class="icon-info-sign"></i></a>
<a href="#" data-bind="popover: {title: name, content: transients.speciesInformation}, event: { 'shown.bs.popover': fetchSpeciesImage}"><i class="icon-info-sign"></i></a>
</span>"""
}

Expand Down

0 comments on commit d4b5d26

Please sign in to comment.