From a77cbd2028075fd0cb2acd7d60a113f7e5248e14 Mon Sep 17 00:00:00 2001 From: "guy.pyrzak%gmail.com" <> Date: Fri, 23 Jan 2009 21:08:13 +0000 Subject: Bug 471518: "Field only appears when:" produces a JavaScript error in Internet Explorer Patch By Jill Foley r=mkanat, a=mkanat --- js/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') diff --git a/js/util.js b/js/util.js index 86924210c..8e787847a 100644 --- a/js/util.js +++ b/js/util.js @@ -166,7 +166,7 @@ function bz_isValueInArray(aArray, aValue) */ function bz_createOptionInSelect(aSelect, aTextValue, aValue) { var myOption = new Option(aTextValue, aValue); - aSelect.appendChild(myOption); + aSelect.options[aSelect.length] = myOption; return myOption; } -- cgit v1.2.3-24-g4f1b