[Mailman-Users] For the truly lazy! (You know who you are.)

Bob Weissman rlw at rlw.best.vwh.net
Tue Jul 30 20:34:07 CEST 2002

If you're as lazy as I am, you know that it's worth 5 minutes of programming effort to save 1/2 second of user action repeated multiple times.

I got tired of having to manually focus on the password input box in my lists' administrative authentication pages. It was costing me one mouse click or two hits of the Tab key. So I decided to make the input box self-focusing.

If you're even lazier than I am, you don't even have to figure this out for yourself. Just apply the following 1-line patch in ~mailman/templates to patch admlogin.txt. It works in all the browsers I have access to. This is for Mailman 2.0.x. I haven't tried 2.1 yet.

- Bob

--- admlogin.txt.ORIG   Tue Jul 30 10:38:31 2002
+++ admlogin.txt        Tue Jul 30 11:24:48 2002
@@ -2,7 +2,7 @@
   <title>%(listname)s Administrative Authentication</title>
-<body bgcolor="#ffffff">
+<body bgcolor="#ffffff" onLoad="document.forms[0][0].focus()">

More information about the Mailman-Users mailing list