]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch suggested by dbaron@fas.harvard.edu -- kick the javascript on
authorterry%mozilla.org <>
Tue, 24 Aug 1999 22:24:49 +0000 (22:24 +0000)
committerterry%mozilla.org <>
Tue, 24 Aug 1999 22:24:49 +0000 (22:24 +0000)
loading, in case the default query has some relevant fields set.

CGI.pl
query.cgi

diff --git a/CGI.pl b/CGI.pl
index a0a64fdad935a093f309885877dfd680b78d73fd..4555ea85631fa95407e2e4b021c5ef08663869df 100644 (file)
--- a/CGI.pl
+++ b/CGI.pl
@@ -481,7 +481,7 @@ name=PleaseMailAPassword>
 
 
 sub PutHeader {
-    my ($title, $h1, $h2) = (@_);
+    my ($title, $h1, $h2, $extra) = (@_);
 
     if (!defined $h1) {
        $h1 = $title;
@@ -489,11 +489,14 @@ sub PutHeader {
     if (!defined $h2) {
        $h2 = "";
     }
+    if (!defined $extra) {
+       $extra = "";
+    }
 
     print "<HTML><HEAD>\n<TITLE>$title</TITLE>\n";
     print Param("headerhtml") . "\n</HEAD>\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);
 
index 72047f644b59e14ca42c30d1ca054f845f86809a..4408dbfbb74163ef4f2639a6ab285a7b4a0cce8d 100755 (executable)
--- a/query.cgi
+++ b/query.cgi
@@ -349,7 +349,8 @@ function selectProduct(f) {
 #    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_target_milestone, "---"; # Oy, what a hack.