Commit 17e3ebfc authored by terry%mozilla.org's avatar terry%mozilla.org

Patch suggested by dbaron@fas.harvard.edu -- kick the javascript on

loading, in case the default query has some relevant fields set.
parent 1d971ce0
...@@ -481,7 +481,7 @@ name=PleaseMailAPassword> ...@@ -481,7 +481,7 @@ name=PleaseMailAPassword>
sub PutHeader { sub PutHeader {
my ($title, $h1, $h2) = (@_); my ($title, $h1, $h2, $extra) = (@_);
if (!defined $h1) { if (!defined $h1) {
$h1 = $title; $h1 = $title;
...@@ -489,11 +489,14 @@ sub PutHeader { ...@@ -489,11 +489,14 @@ sub PutHeader {
if (!defined $h2) { if (!defined $h2) {
$h2 = ""; $h2 = "";
} }
if (!defined $extra) {
$extra = "";
}
print "<HTML><HEAD>\n<TITLE>$title</TITLE>\n"; print "<HTML><HEAD>\n<TITLE>$title</TITLE>\n";
print Param("headerhtml") . "\n</HEAD>\n"; print Param("headerhtml") . "\n</HEAD>\n";
print "<BODY BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\"\n"; print "<BODY BGCOLOR=\"#FFFFFF\" TEXT=\"#000000\"\n";
print "LINK=\"#0000EE\" VLINK=\"#551A8B\" ALINK=\"#FF0000\">\n"; print "LINK=\"#0000EE\" VLINK=\"#551A8B\" ALINK=\"#FF0000\" $extra>\n";
print PerformSubsts(Param("bannerhtml"), undef); print PerformSubsts(Param("bannerhtml"), undef);
......
...@@ -349,7 +349,8 @@ function selectProduct(f) { ...@@ -349,7 +349,8 @@ function selectProduct(f) {
# set legal_product [concat $default{"product"} [lreplace $legal_product $w $w]] # set legal_product [concat $default{"product"} [lreplace $legal_product $w $w]]
# } # }
PutHeader("Bugzilla Query Page", "Query Page"); PutHeader("Bugzilla Query Page", "Query Page", "",
q{onLoad="selectProduct(document.forms[0]);"});
push @::legal_resolution, "---"; # Oy, what a hack. push @::legal_resolution, "---"; # Oy, what a hack.
push @::legal_target_milestone, "---"; # Oy, what a hack. push @::legal_target_milestone, "---"; # Oy, what a hack.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment