Bug sur le focus au chargement de la page de login

This commit is contained in:
Alan Garcia 2013-03-07 09:21:26 +00:00
parent b7e10ba679
commit 3f32183fe5
1 changed files with 2 additions and 2 deletions

View File

@ -135,11 +135,11 @@ if (!$charset) $charset="UTF-8";
</div>
<script>
document.forms['loginform'].username.focus();
$('#username').focus();
function logmein(){
if ( $('#username').val() =='' || $('#password').val() =='' ) {
alert('<?php __("Need a login and a password"); ?>');
alert("<?php __("Need a login and a password"); ?>");
return false;
}
return true;