From d0605ef9490b55c38d090c21b5993eda143e7e86 Mon Sep 17 00:00:00 2001 From: "cyeh%bluemartini.com" <> Date: Thu, 1 Mar 2001 07:00:28 +0000 Subject: fix for 58436: javascript strict warnings in query.cgi patch submitted by sidney@sidney.com (Sidney Markowitz) wrap javascript around Param("usetargetmilestone") --- query.cgi | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/query.cgi b/query.cgi index 8a23be33f..b002a2ef7 100755 --- a/query.cgi +++ b/query.cgi @@ -374,7 +374,7 @@ for $p (@::product_list) { } $i = 0; -$jscript .= q{ +$jscript .= << 'ENDSCRIPT'; // Only display versions/components valid for selected product(s) @@ -468,7 +468,10 @@ function selectProduct(f) { } } - if (f.target_milestone) { +ENDSCRIPT +if (Param("usetargetmilestone")) { + $jscript .= q{ + if (f.target_milestone) { var tmsel = new Array(); for (i=0 ; i -}; +ENDSCRIPT -- cgit v1.2.3-24-g4f1b