summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorcyeh%bluemartini.com <>2001-03-01 08:00:28 +0100
committercyeh%bluemartini.com <>2001-03-01 08:00:28 +0100
commitd0605ef9490b55c38d090c21b5993eda143e7e86 (patch)
tree20fcc19abe33105f57df620d58d29bc8ca07e120 /query.cgi
parenteaf1ffb2418b51281339afd0afd3ac17824621d5 (diff)
downloadbugzilla-d0605ef9490b55c38d090c21b5993eda143e7e86.tar.gz
bugzilla-d0605ef9490b55c38d090c21b5993eda143e7e86.tar.xz
fix for 58436: javascript strict warnings in query.cgi
patch submitted by sidney@sidney.com (Sidney Markowitz) wrap javascript around Param("usetargetmilestone")
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi16
1 files 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<f.target_milestone.length ; i++) {
if (f.target_milestone[i].selected) {
@@ -502,12 +505,17 @@ function selectProduct(f) {
}
}
}
- }
+ }
+ };
+
+}
+
+$jscript .= << 'ENDSCRIPT';
}
// -->
</script>
-};
+ENDSCRIPT