diff options
author | cyeh%bluemartini.com <> | 2001-03-01 08:00:28 +0100 |
---|---|---|
committer | cyeh%bluemartini.com <> | 2001-03-01 08:00:28 +0100 |
commit | d0605ef9490b55c38d090c21b5993eda143e7e86 (patch) | |
tree | 20fcc19abe33105f57df620d58d29bc8ca07e120 | |
parent | eaf1ffb2418b51281339afd0afd3ac17824621d5 (diff) | |
download | bugzilla-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")
-rwxr-xr-x | query.cgi | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -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 |