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 /bug_form.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 'bug_form.pl')
-rw-r--r-- | bug_form.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bug_form.pl b/bug_form.pl index e4fa39c6e..3fd71c99e 100644 --- a/bug_form.pl +++ b/bug_form.pl @@ -321,20 +321,21 @@ sub EmitDependList { my ($desc, $myfield, $targetfield) = (@_); print "<th align=right>$desc:</th><td>"; my @list; - SendSQL("select dependencies.$targetfield, bugs.bug_status + SendSQL("select dependencies.$targetfield, bugs.bug_status, short_desc from dependencies, bugs where dependencies.$myfield = $id and bugs.bug_id = dependencies.$targetfield order by dependencies.$targetfield"); while (MoreSQLData()) { - my ($i, $stat) = (FetchSQLData()); + my ($i, $stat, $dep_desc) = (FetchSQLData()); push(@list, $i); my $opened = ($stat eq "NEW" || $stat eq "ASSIGNED" || $stat eq "REOPENED"); if (!$opened) { print "<strike>"; } - print qq{<a href="show_bug.cgi?id=$i">$i</a>}; + $dep_desc = value_quote($dep_desc); + print qq{<a href="show_bug.cgi?id=$i" title="$stat - $dep_desc">$i</a>}; if (!$opened) { print "</strike>"; } |