diff options
author | Mark Wells <mark@freeside.biz> | 2015-07-01 18:05:23 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-07-01 18:05:23 -0700 |
commit | 3183f0b1485735929aed95496d47d7381af40f34 (patch) | |
tree | b9cb13ac0c6cc35d0a746456fb7f4283767db436 /httemplate/search/elements/search-html.html | |
parent | 5fa112d129fa6866703c52c4fdbe0076d80efdf0 (diff) |
fix broken tooltips, #25994
Diffstat (limited to 'httemplate/search/elements/search-html.html')
-rw-r--r-- | httemplate/search/elements/search-html.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/httemplate/search/elements/search-html.html b/httemplate/search/elements/search-html.html index 6121aea94..12f6c1e04 100644 --- a/httemplate/search/elements/search-html.html +++ b/httemplate/search/elements/search-html.html @@ -349,6 +349,7 @@ $rows => [] % } % my $i = 0; # for row striping # XXX CSS - nth-child +% my $id = 0; % foreach my $row ( @$rows ) { % % my $rowstyle = ''; @@ -504,7 +505,11 @@ $rows => [] % % $tooltip = &{$tooltip}($row) % if ref($tooltip) eq 'CODE'; -% $tooltip = qq! title="<% $tooltip |h %>"!; +% $tooltip = qq! id="a$id" !. +% qq! onmouseover="return overlib(!. +% $m->interp->apply_escapes($tooltip, 'h', 'js_string'). +% qq!, FGCLASS, 'tooltip', REF, 'a$id', !. +% qq!REFC, 'LL', REFP, 'UL')"! if $tooltip; % % if ( $link ) { % my( $url, $method ) = @{$link}; @@ -521,6 +526,7 @@ $rows => [] % elsif ( $tooltip ) { % $a = qq(<A $tooltip>); % } +% $id++; % } % |