Fix code problem on autologins.

This commit is contained in:
Jim Norman 2007-02-05 21:25:09 +00:00
parent dbe91182f6
commit 2d38dccf42

View File

@ -510,22 +510,12 @@ function websso()
if (ele != null)
{
ele[0].value = theValue.value;
}
}
// locate and save off the form of the password element
if (para.item(j).type == "password")
if (ele[0].type == "password")
{
formToSubmit = para.item(j).parentNode.parentNode;
// did we get it?
if (formToSubmit.type != "form")
{
formToSubmit = formToSubmit.parentNode;
formToSubmit = ele[0].form;
}
}
}
}
}
catch (err)
@ -561,7 +551,8 @@ function websso()
}
else
{
formToSubmit = window._content.document.forms[0].submit();
//formToSubmit = window._content.document.forms[0].submit();
logMessage("One form");
}
//try it now
@ -1273,3 +1264,5 @@ logMessage('adding event listener');
window.addEventListener("load",websso,true) ;
window.addEventListener("submit",promptuser,true) ;
//HTMLFormElement.prototype._submit = HTMLFormElement.prototype.submit;
//HTMLFormElement.prototype.submit = promptuser;