From: justdave%syndicomm.com <> Date: Fri, 31 Aug 2001 05:56:53 +0000 (+0000) Subject: Fix for bug 96534: The version, component, and milestone select lists on the query... X-Git-Tag: bugzilla-2.14.1~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e9bbc0b0cf55e2da4d5e4ea30ba8a02324d6265;p=thirdparty%2Fbugzilla.git Fix for bug 96534: The version, component, and milestone select lists on the query page were slow to reflow when you changed the product in the first select list. This patch is a complete rewrite from scratch of the javascript used on query.cgi, which results in an approximately 700% speed increase in the reflow time when changing the selected product. Patch by Chris Lahey and Christian Reis Javascript changes r= caillon@returnzero.com, louie@ximian.com Perl changes r= jake@acutex.net, justdave@syndicomm.com --- diff --git a/query.cgi b/query.cgi index 16c7838644..1013b7af0a 100755 --- a/query.cgi +++ b/query.cgi @@ -21,6 +21,8 @@ # Contributor(s): Terry Weissman # David Gardiner # Matthias Radestock +# Chris Lahey [javascript fixes] +# Christian Reis [javascript rewrite] use diagnostics; use strict; @@ -324,202 +326,297 @@ foreach my $m (@::legal_target_milestone) { } } -# javascript +# SELECT box javascript handling. This is done to make the component, +# versions and milestone SELECTs repaint automatically when a product is +# selected. Refactored for bug 96534. -my $jscript = << 'ENDSCRIPT'; - - ENDSCRIPT - +# +# End the fearsome Javascript section. +# # Muck the "legal product" list so that the default one is always first (and # is therefore visibly selected.