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
URI:
http://www.dsq-sds.org/login/signIn
/templates/user/login.tpl on line 30
change
<form method="post" action="{url .... }" >

to
<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.