[rt-devel] Login Username autofocus

Jesse Vincent jesse at bestpractical.com
Fri Jan 4 00:33:44 EST 2002


My general policy on javascript in apps is "nothing that breaks if you don't 
use javascript."  
That looks reasonable. I don't see any reason not to drop it into 
what will become 2.0.12 when I get nearer to my source.. 

	-j


On Thu, Jan 03, 2002 at 09:14:11PM -0700, Cassidy B. Larson wrote:
> 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%>
> 
> 
> 
> _______________________________________________
> rt-devel mailing list
> rt-devel at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-devel
> 

-- 
http://www.bestpractical.com/products/rt  -- Trouble Ticketing. Free.




More information about the Rt-devel mailing list