From: terry%netscape.com <> Date: Sat, 20 Mar 1999 05:40:14 +0000 (+0000) Subject: Patch by David Gardiner (with further X-Git-Tag: bugzilla-2.4~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a224d895c0e4ae1c8295bb5faa26ac2e60f2b71b;p=thirdparty%2Fbugzilla.git Patch by David Gardiner (with further hacks by me): Added javascript magic to adjust component/version lists when products get selected. --- diff --git a/query.cgi b/query.cgi index 66a1f5b54d..2653f46d62 100755 --- a/query.cgi +++ b/query.cgi @@ -18,6 +18,7 @@ # Netscape Communications Corporation. All Rights Reserved. # # Contributor(s): Terry Weissman +# David Gardiner use diagnostics; use strict; @@ -37,6 +38,8 @@ use vars @::legal_resolution, @::legal_versions, @::legal_severity, @::legal_target_milestone, + %::versions, + %::components, %::FORM; @@ -181,6 +184,127 @@ my $emailinput1 = GenerateEmailInput(1); my $emailinput2 = GenerateEmailInput(2); +# javascript + +my $jscript = << 'ENDSCRIPT'; +\n"; + # Muck the "legal product" list so that the default one is always first (and @@ -198,6 +322,8 @@ PutHeader("Bugzilla Query Page", "Query Page"); push @::legal_resolution, "---"; # Oy, what a hack. push @::legal_target_milestone, "---"; # Oy, what a hack. +print $jscript; + print "
@@ -271,7 +397,7 @@ print " - @{[make_options(\@::legal_product, $default{'product'}, $type{'product'})]}