diff options
author | dmose%mozilla.org <> | 2000-12-07 11:04:31 +0000 |
---|---|---|
committer | dmose%mozilla.org <> | 2000-12-07 11:04:31 +0000 |
commit | 7033a5f254f8545ef65ed77a51080dd62601a5a4 (patch) | |
tree | 018418f085604dbc31bb1081513e0f073df71419 /globals.pl | |
parent | 8e7c07a12c3512f3be60231e3c68c1ebbaa366af (diff) | |
download | bugs-7033a5f254f8545ef65ed77a51080dd62601a5a4.tar bugs-7033a5f254f8545ef65ed77a51080dd62601a5a4.tar.gz bugs-7033a5f254f8545ef65ed77a51080dd62601a5a4.tar.bz2 bugs-7033a5f254f8545ef65ed77a51080dd62601a5a4.tar.xz bugs-7033a5f254f8545ef65ed77a51080dd62601a5a4.zip |
patch from Jake <jsteenhagen@novagate.com> to fix bug 59515; adds a title attribute containing status and short description to various bug links. In some browsers (most Mozilla builds, at least) this makes the status and short description available as a tooltip, so it is no longer necessary to click through to see it. r=dmose@mozilla.org
Diffstat (limited to 'globals.pl')
-rw-r--r-- | globals.pl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/globals.pl b/globals.pl index f8bb4e217..bd1cf3ede 100644 --- a/globals.pl +++ b/globals.pl @@ -676,15 +676,23 @@ sub quoteUrls { while ($text =~ s/\bbug(\s|%\#)*(\d+)/"##$count##"/ei) { my $item = $&; my $num = $2; + SendSQL("select bugs.bug_status, short_desc + from bugs where bugs.bug_id = $num"); + my ($stat, $dep_desc) = (FetchSQLData()); $item = value_quote($item); # Not really necessary, since we know # there's no special chars in it. - $item = qq{<A HREF="show_bug.cgi?id=$num">$item</A>}; + $dep_desc = value_quote($dep_desc); + $item = qq{<A HREF="show_bug.cgi?id=$num" title="$stat - $dep_desc">$item</A>}; $things[$count++] = $item; } while ($text =~ s/\*\*\* This bug has been marked as a duplicate of (\d+) \*\*\*/"##$count##"/ei) { my $item = $&; my $num = $1; - $item =~ s@\d+@<A HREF="show_bug.cgi?id=$num">$num</A>@; + SendSQL("select bugs.bug_status, short_desc + from bugs where bugs.bug_id = $num"); + my ($stat, $dep_desc) = (FetchSQLData()); + $dep_desc = value_quote($dep_desc); + $item =~ s@\d+@<A HREF="show_bug.cgi?id=$num" title="$stat - $dep_desc">$num</A>@; $things[$count++] = $item; } while ($text =~ s/Created an attachment \(id=(\d+)\)/"##$count##"/e) { |