Bug 471518: "Field only appears when:" produces a JavaScript error in Internet Explorer
Patch By Jill Foley <jillpf55@sbcglobal.net> r=mkanat, a=mkanat git-svn-id: svn://10.0.0.236/trunk@255907 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
b8597fc3e3
commit
0f1acb709a
@ -166,7 +166,7 @@ function bz_isValueInArray(aArray, aValue)
|
|||||||
*/
|
*/
|
||||||
function bz_createOptionInSelect(aSelect, aTextValue, aValue) {
|
function bz_createOptionInSelect(aSelect, aTextValue, aValue) {
|
||||||
var myOption = new Option(aTextValue, aValue);
|
var myOption = new Option(aTextValue, aValue);
|
||||||
aSelect.appendChild(myOption);
|
aSelect.options[aSelect.length] = myOption;
|
||||||
return myOption;
|
return myOption;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@ var select_values = new Array();
|
|||||||
[% FOREACH sel_field = Bugzilla.get_fields({ is_select => 1 }) %]
|
[% FOREACH sel_field = Bugzilla.get_fields({ is_select => 1 }) %]
|
||||||
select_values[[% sel_field.id FILTER js %]] = [
|
select_values[[% sel_field.id FILTER js %]] = [
|
||||||
[% FOREACH legal_value = sel_field.legal_values %]
|
[% FOREACH legal_value = sel_field.legal_values %]
|
||||||
[[% legal_value.id FILTER js %], '[% legal_value.name FILTER html %]'],
|
[[% legal_value.id FILTER js %], '[% legal_value.name FILTER html %]'][% ',' UNLESS loop.last %]
|
||||||
[% END %]
|
[% END %]
|
||||||
];
|
];
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user