[prev in list] [next in list] [prev in thread] [next in thread]
List: squirrelmail-cvs
Subject: [SM-CVS] SF.net SVN: squirrelmail: [12910] trunk/squirrelmail
From: pdontthink () users ! sourceforge ! net
Date: 2008-01-30 20:18:34
Message-ID: E1JKJOE-0001zt-7F () sc8-pr-svn2 ! sourceforge ! net
[Download RAW message or body]
Revision: 12910
http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=12910&view=rev
Author: pdontthink
Date: 2008-01-30 12:18:33 -0800 (Wed, 30 Jan 2008)
Log Message:
-----------
Add "alreadyFocused" functionality to login page
Modified Paths:
--------------
trunk/squirrelmail/src/login.php
trunk/squirrelmail/templates/default/login.tpl
trunk/squirrelmail/templates/default_advanced/login.tpl
Modified: trunk/squirrelmail/src/login.php
===================================================================
--- trunk/squirrelmail/src/login.php 2008-01-30 20:08:23 UTC (rev 12909)
+++ trunk/squirrelmail/src/login.php 2008-01-30 20:18:33 UTC (rev 12910)
@@ -67,7 +67,9 @@
/* Output the javascript onload function. */
$header = "<script type=\"text/javascript\">\n" .
"<!--\n".
+ " var alreadyFocused = false;\n".
" function squirrelmail_loginpage_onload() {\n".
+ " if (alreadyFocused) return;\n".
" var textElements = 0; var i = 0;\n".
" for (i = 0; i < document.forms[0].elements.length; i++) {\n".
" if (document.forms[0].elements[i].type == \"text\" || \
document.forms[0].elements[i].type == \"password\") {\n".
Modified: trunk/squirrelmail/templates/default/login.tpl
===================================================================
--- trunk/squirrelmail/templates/default/login.tpl 2008-01-30 20:08:23 UTC (rev \
12909)
+++ trunk/squirrelmail/templates/default/login.tpl 2008-01-30 20:18:33 UTC (rev \
12910) @@ -49,7 +49,7 @@
<?php echo _("Name:"); ?>
</td>
<td class="sqm_loginFieldInput">
- <input type="text" name="login_username" value="<?php echo $login_field_value; \
?>" id="login_username" /> + <input type="text" name="login_username" value="<?php \
echo $login_field_value; ?>" id="login_username" onfocus="alreadyFocused=true;" /> \
</td> </tr>
<tr>
@@ -57,7 +57,7 @@
<?php echo _("Password:"); ?>
</td>
<td class="sqm_loginFieldInput">
- <input type="password" name="secretkey" value="" id="secretkey" />
+ <input type="password" name="secretkey" value="" id="secretkey" \
onfocus="alreadyFocused=true;" /> <?php echo $login_extra; ?>
</td>
</tr>
Modified: trunk/squirrelmail/templates/default_advanced/login.tpl
===================================================================
--- trunk/squirrelmail/templates/default_advanced/login.tpl 2008-01-30 20:08:23 UTC \
(rev 12909)
+++ trunk/squirrelmail/templates/default_advanced/login.tpl 2008-01-30 20:18:33 UTC \
(rev 12910) @@ -59,7 +59,7 @@
<?php echo _("Name:"); ?>
</td>
<td class="fieldInput">
- <input type="text" name="login_username" value="<?php echo $login_field_value; \
?>" id="login_username" class="input" /> + <input type="text" \
name="login_username" value="<?php echo $login_field_value; ?>" id="login_username" \
class="input" onfocus="alreadyFocused=true;" /> </td>
</tr>
<tr>
@@ -67,7 +67,7 @@
<?php echo _("Password:"); ?>
</td>
<td class="fieldInput">
- <input type="password" name="secretkey" value="" id="secretkey" class="input" \
/> + <input type="password" name="secretkey" value="" id="secretkey" \
class="input" onfocus="alreadyFocused=true;" /> <?php echo $login_extra; ?>
</td>
</tr>
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs@lists.sourceforge.net
List info (subscribe/unsubscribe/change options): \
https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic