IE compatibility fixes.

This commit is contained in:
gerv%gerv.net 2005-01-12 23:22:18 +00:00
parent 1a99e44b23
commit ff892c6f29

View File

@ -23,7 +23,7 @@
# ***** END LICENSE BLOCK ***** %]
[% script = BLOCK %]
var ids = ["name", "subject", "comments", "product"];
var ids = ["name", "subject", "comments"];
function checkSubmitEnable() {
/* To enable the button, all fields must have a value */
@ -47,8 +47,7 @@ function checkSubmitEnable() {
function onLoad() {
/* Add the event listeners, and disable the button initially */
for (var i = 0; i < ids.length; i++) {
document.getElementById(ids[i]).setAttribute("onkeyup",
"checkSubmitEnable()");
document.getElementById(ids[i]).onkeyup = checkSubmitEnable;
}
checkSubmitEnable();