summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
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