Fossil SCM
place the cursor in the username text box on the login screen.
Commit
ca08c1d1b3f9931e96a01bdbfe6ffa17ed0b8d77
Parent
d6bfe8d9a8ea9c4…
1 file changed
+3
-2
+3
-2
| --- src/login.c | ||
| +++ src/login.c | ||
| @@ -218,13 +218,13 @@ | ||
| 218 | 218 | } |
| 219 | 219 | @ <table align="left" hspace="10"> |
| 220 | 220 | @ <tr> |
| 221 | 221 | @ <td align="right">User ID:</td> |
| 222 | 222 | if( anonFlag ){ |
| 223 | - @ <td><input type="text" name="u" value="anonymous" size=30></td> | |
| 223 | + @ <td><input type="text" id="u" name="u" value="anonymous" size=30></td> | |
| 224 | 224 | }else{ |
| 225 | - @ <td><input type="text" name="u" value="" size=30></td> | |
| 225 | + @ <td><input type="text" id="u" name="u" value="" size=30></td> | |
| 226 | 226 | } |
| 227 | 227 | @ </tr> |
| 228 | 228 | @ <tr> |
| 229 | 229 | @ <td align="right">Password:</td> |
| 230 | 230 | @ <td><input type="password" name="p" value="" size=30></td> |
| @@ -237,10 +237,11 @@ | ||
| 237 | 237 | @ <tr> |
| 238 | 238 | @ <td></td> |
| 239 | 239 | @ <td><input type="submit" name="in" value="Login"></td> |
| 240 | 240 | @ </tr> |
| 241 | 241 | @ </table> |
| 242 | + @ <script>document.getElementById('u').focus()</script> | |
| 242 | 243 | if( g.zLogin==0 ){ |
| 243 | 244 | @ <p>Enter |
| 244 | 245 | }else{ |
| 245 | 246 | @ <p>You are currently logged in as <b>%h(g.zLogin)</b></p> |
| 246 | 247 | @ <p>To change your login to a different user, enter |
| 247 | 248 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -218,13 +218,13 @@ | |
| 218 | } |
| 219 | @ <table align="left" hspace="10"> |
| 220 | @ <tr> |
| 221 | @ <td align="right">User ID:</td> |
| 222 | if( anonFlag ){ |
| 223 | @ <td><input type="text" name="u" value="anonymous" size=30></td> |
| 224 | }else{ |
| 225 | @ <td><input type="text" name="u" value="" size=30></td> |
| 226 | } |
| 227 | @ </tr> |
| 228 | @ <tr> |
| 229 | @ <td align="right">Password:</td> |
| 230 | @ <td><input type="password" name="p" value="" size=30></td> |
| @@ -237,10 +237,11 @@ | |
| 237 | @ <tr> |
| 238 | @ <td></td> |
| 239 | @ <td><input type="submit" name="in" value="Login"></td> |
| 240 | @ </tr> |
| 241 | @ </table> |
| 242 | if( g.zLogin==0 ){ |
| 243 | @ <p>Enter |
| 244 | }else{ |
| 245 | @ <p>You are currently logged in as <b>%h(g.zLogin)</b></p> |
| 246 | @ <p>To change your login to a different user, enter |
| 247 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -218,13 +218,13 @@ | |
| 218 | } |
| 219 | @ <table align="left" hspace="10"> |
| 220 | @ <tr> |
| 221 | @ <td align="right">User ID:</td> |
| 222 | if( anonFlag ){ |
| 223 | @ <td><input type="text" id="u" name="u" value="anonymous" size=30></td> |
| 224 | }else{ |
| 225 | @ <td><input type="text" id="u" name="u" value="" size=30></td> |
| 226 | } |
| 227 | @ </tr> |
| 228 | @ <tr> |
| 229 | @ <td align="right">Password:</td> |
| 230 | @ <td><input type="password" name="p" value="" size=30></td> |
| @@ -237,10 +237,11 @@ | |
| 237 | @ <tr> |
| 238 | @ <td></td> |
| 239 | @ <td><input type="submit" name="in" value="Login"></td> |
| 240 | @ </tr> |
| 241 | @ </table> |
| 242 | @ <script>document.getElementById('u').focus()</script> |
| 243 | if( g.zLogin==0 ){ |
| 244 | @ <p>Enter |
| 245 | }else{ |
| 246 | @ <p>You are currently logged in as <b>%h(g.zLogin)</b></p> |
| 247 | @ <p>To change your login to a different user, enter |
| 248 |