[rt-devel] Login Username autofocus

Cassidy B. Larson butch at infowest.com
Thu Jan 3 23:14:11 EST 2002


Here's a little patch that will make the username form autofocus
upon pulling up the login screen.. Patched against my 2.0.9 sources..

Could this get approved and committed jesse? I know I'm not the only one
having to click on that form everytime I login..

Cassidy

----------------------------------------

*** /usr/local/src/rt-2-0-9/webrt/Elements/Header       Tue Nov  6 16:06:57
2001
--- Header      Thu Jan  3 20:53:54 2002
***************
*** 15,21 ****
--- 15,25 ----

  <link rel="stylesheet" href="<%$RT::WebPath%>/NoAuth/webrt.css"
type="text/css">
  </HEAD>
+ % if ($RT::WebExternalAuth) {
  <BODY BGCOLOR="<%$BgColor%>">
+ % } else {
+ <BODY BGCOLOR="<%$BgColor%>" onload="document.login.user.focus()">
+ % }
  % if ($ShowBar) {
  <TABLE BORDER=0 WIDTH=100% CELLSPACING=0 BGCOLOR="#993333">

-------------------------

You'll want to give the login form a name as well:

*** /usr/local/src/rt-2-0-9/webrt/Elements/Login        Tue Nov  6 16:06:57
2001
--- /usr/local/rt2/WebRT/html/Elements/Login    Thu Jan  3 20:54:39 2002
***************
*** 14,16 ****
  % unless ($RT::WebExternalAuth) {
! <FORM METHOD=POST >
  <TABLE BORDER=0 WIDTH=100%>
--- 14,16 ----
  % unless ($RT::WebExternalAuth) {
! <FORM NAME=login METHOD=POST >
  <TABLE BORDER=0 WIDTH=100%>






More information about the Rt-devel mailing list