[freeside-commits] branch FREESIDE_3_BRANCH updated. 67ba9e652abc61e5e4e114e4fb0d1d579a518c66

Mark Wells mark at 420.am
Wed Jul 1 18:12:25 PDT 2015


The branch, FREESIDE_3_BRANCH has been updated
       via  67ba9e652abc61e5e4e114e4fb0d1d579a518c66 (commit)
      from  e6def4dfd7d855083fbe4859c8882c16dad9c582 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 67ba9e652abc61e5e4e114e4fb0d1d579a518c66
Author: Mark Wells <mark at freeside.biz>
Date:   Wed Jul 1 18:11:49 2015 -0700

    fix broken tooltips, #25994

diff --git a/httemplate/search/elements/search-html.html b/httemplate/search/elements/search-html.html
index d8ab30a..1348995 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 = '';
@@ -490,11 +491,11 @@ $rows => []
 %
 %           $tooltip = &{$tooltip}($row)
 %             if ref($tooltip) eq 'CODE';
-%           $tooltip = qq! title="<% $tooltip |h %>"!;
-%#             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;
+%           $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};
@@ -511,6 +512,7 @@ $rows => []
 %           elsif ( $tooltip ) {
 %             $a = qq(<A $tooltip>);
 %           }
+%           $id++;
 
 %         }
 %

-----------------------------------------------------------------------

Summary of changes:
 httemplate/search/elements/search-html.html |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)




More information about the freeside-commits mailing list