Skip to content

Commit

Permalink
Login screen now defaults focus to username field, if client has java…
Browse files Browse the repository at this point in the history
…script.
  • Loading branch information
icculus committed Jun 5, 2002
1 parent 91ccbb0 commit b2d1c5f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion php_interface/queue.php
Expand Up @@ -513,6 +513,11 @@ function output_login_widgets($next_action = 'view')
<script language="javascript">
<!--
function loginfocus()
{
document.loginform.form_user.focus();
} // loginfocus
function trim(inputString)
{
var retValue = inputString;
Expand Down Expand Up @@ -1069,6 +1074,12 @@ function do_unknown()
} // do_unknown


function body_attributes($action)
{
if ($action == 'login')
print('onLoad="loginfocus();"');
} // body_attributes

// mainline/setup.


Expand Down Expand Up @@ -1104,7 +1115,7 @@ function do_unknown()
<title>IcculusNews</title>
</head>

<body>
<body <?php body_attributes($action); ?> >
<?php output_site_header(); ?>
<?php $actions[$action](); ?>
<?php output_site_footer(); ?>
Expand Down

0 comments on commit b2d1c5f

Please sign in to comment.