Commit d0605ef9 authored by cyeh%bluemartini.com's avatar cyeh%bluemartini.com

fix for 58436: javascript strict warnings in query.cgi

patch submitted by sidney@sidney.com (Sidney Markowitz) wrap javascript around Param("usetargetmilestone")
parent eaf1ffb2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment