mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
fix for #39044 : Some vers. of some browsers give a script warning on query page when not
using milestones. patch submitted by nkiesel@tbdnetworks.com
This commit is contained in:
parent
51b6b8b62c
commit
0817196698
@ -431,40 +431,41 @@ function selectProduct(f) {
|
||||
}
|
||||
}
|
||||
|
||||
var tmsel = new Array();
|
||||
for (i=0 ; i<f.target_milestone.length ; i++) {
|
||||
if (f.target_milestone[i].selected) {
|
||||
tmsel[f.target_milestone[i].value] = 1;
|
||||
if (f.target_milestone) {
|
||||
var tmsel = new Array();
|
||||
for (i=0 ; i<f.target_milestone.length ; i++) {
|
||||
if (f.target_milestone[i].selected) {
|
||||
tmsel[f.target_milestone[i].value] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
f.target_milestone.options.length = 0;
|
||||
|
||||
for (tm in tms) {
|
||||
if (typeof(tms[v]) == 'function') continue;
|
||||
var doit = doall;
|
||||
for (i=0 ; !doit && i<f.product.length ; i++) {
|
||||
if (f.product[i].selected) {
|
||||
var p = f.product[i].value;
|
||||
for (j in tms[tm]) {
|
||||
if (typeof(tms[tm][j]) == 'function') continue;
|
||||
var p2 = tms[tm][j];
|
||||
if (p2 == p) {
|
||||
doit = true;
|
||||
break;
|
||||
|
||||
f.target_milestone.options.length = 0;
|
||||
|
||||
for (tm in tms) {
|
||||
if (typeof(tms[v]) == 'function') continue;
|
||||
var doit = doall;
|
||||
for (i=0 ; !doit && i<f.product.length ; i++) {
|
||||
if (f.product[i].selected) {
|
||||
var p = f.product[i].value;
|
||||
for (j in tms[tm]) {
|
||||
if (typeof(tms[tm][j]) == 'function') continue;
|
||||
var p2 = tms[tm][j];
|
||||
if (p2 == p) {
|
||||
doit = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (doit) {
|
||||
var l = f.target_milestone.length;
|
||||
f.target_milestone[l] = new Option(tm, tm);
|
||||
if (tmsel[tm]) {
|
||||
f.target_milestone[l].selected = true;
|
||||
if (doit) {
|
||||
var l = f.target_milestone.length;
|
||||
f.target_milestone[l] = new Option(tm, tm);
|
||||
if (tmsel[tm]) {
|
||||
f.target_milestone[l].selected = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user