summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorguy.pyrzak%gmail.com <>2009-01-23 22:08:13 +0100
committerguy.pyrzak%gmail.com <>2009-01-23 22:08:13 +0100
commita77cbd2028075fd0cb2acd7d60a113f7e5248e14 (patch)
treedd4ff60fb10cb22e31373571956d12737f7f6da3 /js
parentaff82a963b8ef1561b346eea5627ee189ce405f8 (diff)
downloadbugzilla-a77cbd2028075fd0cb2acd7d60a113f7e5248e14.tar.gz
bugzilla-a77cbd2028075fd0cb2acd7d60a113f7e5248e14.tar.xz
Bug 471518: "Field only appears when:" produces a JavaScript error in Internet Explorer
Patch By Jill Foley <jillpf55@sbcglobal.net> r=mkanat, a=mkanat
Diffstat (limited to 'js')
-rw-r--r--js/util.js2
1 files changed, 1 insertions, 1 deletions
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;
}