From 3cda6c72ec78c3eccc03894c4f0af37f9499e9f2 Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" Date: Tue, 24 Aug 1999 15:24:50 +0000 Subject: [PATCH] Patch suggested by dbaron@fas.harvard.edu -- kick the javascript on loading, in case the default query has some relevant fields set. git-svn-id: svn://10.0.0.236/trunk@44297 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/CGI.pl | 7 +++++-- mozilla/webtools/bugzilla/query.cgi | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/mozilla/webtools/bugzilla/CGI.pl b/mozilla/webtools/bugzilla/CGI.pl index a0a64fdad93..4555ea85631 100644 --- a/mozilla/webtools/bugzilla/CGI.pl +++ b/mozilla/webtools/bugzilla/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 "\n$title\n"; print Param("headerhtml") . "\n\n"; print "\n"; + print "LINK=\"#0000EE\" VLINK=\"#551A8B\" ALINK=\"#FF0000\" $extra>\n"; print PerformSubsts(Param("bannerhtml"), undef); diff --git a/mozilla/webtools/bugzilla/query.cgi b/mozilla/webtools/bugzilla/query.cgi index 72047f644b5..4408dbfbb74 100755 --- a/mozilla/webtools/bugzilla/query.cgi +++ b/mozilla/webtools/bugzilla/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.