[freeside-commits] branch FREESIDE_4_BRANCH updated. 7328bdffbec118107deeeb8b56bebf602703396d

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


The branch, FREESIDE_4_BRANCH has been updated
       via  7328bdffbec118107deeeb8b56bebf602703396d (commit)
      from  e5f71fca0f00992f80b3081844714d95eda3a295 (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 7328bdffbec118107deeeb8b56bebf602703396d
Author: Mark Wells <mark at freeside.biz>
Date:   Wed Jul 1 18:05:23 2015 -0700

    fix broken tooltips, #25994

diff --git a/httemplate/search/elements/search-html.html b/httemplate/search/elements/search-html.html
index 6121aea..12f6c1e 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++;
 
 %         }
 %

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

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




More information about the freeside-commits mailing list