From 0e9bbc0b0cf55e2da4d5e4ea30ba8a02324d6265 Mon Sep 17 00:00:00 2001 From: "justdave%syndicomm.com" <> Date: Fri, 31 Aug 2001 05:56:53 +0000 Subject: 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 --- query.cgi | 395 ++++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 246 insertions(+), 149 deletions(-) (limited to 'query.cgi') diff --git a/query.cgi b/query.cgi index 16c783864..1013b7af0 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. -- cgit v1.2.3-24-g4f1b