Monday, November 30, 2009

Open Journal Systems - error on document.login.password or document.login.username

I've made a bug fix for OJS (Open Journal Systems). Its a bug related to IE, and sometimes keeps users from being able to login.

Message: 'document.login.password' is null or not an object
or Message: 'document.login.username' is null or not an object
Line: 148
Char: 2
Code: 0
/templates/user/login.tpl on line 30
<form method="post" action="{url .... }" >

<form method="post" id="signIn" action="{url ... }" >

Then at roughly line 65 change the line about document.login.username to
document.getElementById("signIn").{if $username}password{else}username{/if}.focus();

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.